Skip to content

Commit bdf16d7

Browse files
committed
update bundled libs
1 parent cd9448e commit bdf16d7

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

extern/btyacc/defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ extern Yshort nunused;
297297
extern Yshort final_state;
298298

299299
/* system variable */
300-
#ifndef _MSC_VER
300+
#ifndef _WIN32
301301
extern int errno;
302302
#endif
303303

extern/btyacc/mkpar.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ void unused_rules()
177177
if (!rules_used[i]) ++nunused;
178178

179179
if (nunused)
180+
{
180181
if (nunused == 1)
181182
fprintf(stderr, "%s: 1 rule never reduced\n", myname);
182183
else
183184
fprintf(stderr, "%s: %d rules never reduced\n", myname, nunused);
185+
}
184186
}
185187

186188

extern/cloop/src/cloop/Main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <string>
2929
#include <stdexcept>
3030

31-
using std::auto_ptr;
31+
using std::unique_ptr;
3232
using std::cerr;
3333
using std::endl;
3434
using std::exception;
@@ -66,7 +66,7 @@ static void run(int argc, const char* argv[])
6666
Parser parser(&lexer);
6767
parser.parse();
6868

69-
auto_ptr<Generator> generator;
69+
unique_ptr<Generator> generator;
7070

7171
if (outFormat == "c++")
7272
{

extern/decNumber/decDouble.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
uint8_t bytes[DECDOUBLE_Bytes]; /* fields: 1, 5, 8, 50 bits */
4747
uint16_t shorts[DECDOUBLE_Bytes/2];
4848
uint32_t words[DECDOUBLE_Bytes/4];
49-
#if DECUSE64
49+
#ifdef DECUSE64
5050
uint64_t longs[DECDOUBLE_Bytes/8];
5151
#endif
5252
} decDouble;

extern/decNumber/decQuad.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
uint8_t bytes[DECQUAD_Bytes]; /* fields: 1, 5, 12, 110 bits */
4848
uint16_t shorts[DECQUAD_Bytes/2];
4949
uint32_t words[DECQUAD_Bytes/4];
50-
#if DECUSE64
50+
#ifdef DECUSE64
5151
uint64_t longs[DECQUAD_Bytes/8];
5252
#endif
5353
} decQuad;

extern/ttmath/ttmathtypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ namespace ttmath
158158
/*!
159159
on 32 bit platform ulint and slint will be equal 64 bits
160160
*/
161-
#ifdef _MSC_VER
161+
#ifdef _WIN32
162162
// long long on MS Windows (Visual and GCC mingw compilers) have 64 bits
163163
// stdint.h is not available on Visual Studio prior to VS 2010 version
164164
typedef unsigned long long int ulint;
@@ -205,7 +205,7 @@ namespace ttmath
205205
/*!
206206
on 64bit platforms one word (uint, sint) will be equal 64bits
207207
*/
208-
#ifdef _MSC_VER
208+
#ifdef _WIN32
209209
/* in VC 'long' type has 32 bits, __int64 is VC extension */
210210
typedef unsigned __int64 uint;
211211
typedef signed __int64 sint;

0 commit comments

Comments
 (0)