diff --git a/extern/btyacc/defs.h b/extern/btyacc/defs.h index 7adb1d9a299..3d7841b430d 100644 --- a/extern/btyacc/defs.h +++ b/extern/btyacc/defs.h @@ -297,7 +297,7 @@ extern Yshort nunused; extern Yshort final_state; /* system variable */ -#ifndef _MSC_VER +#ifndef _WIN32 extern int errno; #endif diff --git a/extern/btyacc/mkpar.c b/extern/btyacc/mkpar.c index c8e55d8c10b..7b587224776 100644 --- a/extern/btyacc/mkpar.c +++ b/extern/btyacc/mkpar.c @@ -177,10 +177,12 @@ void unused_rules() if (!rules_used[i]) ++nunused; if (nunused) + { if (nunused == 1) fprintf(stderr, "%s: 1 rule never reduced\n", myname); else fprintf(stderr, "%s: %d rules never reduced\n", myname, nunused); + } } diff --git a/extern/cloop/src/cloop/Main.cpp b/extern/cloop/src/cloop/Main.cpp index b69f839ff2e..48447a6d6a6 100644 --- a/extern/cloop/src/cloop/Main.cpp +++ b/extern/cloop/src/cloop/Main.cpp @@ -28,7 +28,7 @@ #include #include -using std::auto_ptr; +using std::unique_ptr; using std::cerr; using std::endl; using std::exception; @@ -66,7 +66,7 @@ static void run(int argc, const char* argv[]) Parser parser(&lexer); parser.parse(); - auto_ptr generator; + unique_ptr generator; if (outFormat == "c++") { diff --git a/extern/ttmath/ttmathtypes.h b/extern/ttmath/ttmathtypes.h index 3d9ddbe7b0b..ac92fc8e98f 100644 --- a/extern/ttmath/ttmathtypes.h +++ b/extern/ttmath/ttmathtypes.h @@ -158,7 +158,7 @@ namespace ttmath /*! on 32 bit platform ulint and slint will be equal 64 bits */ - #ifdef _MSC_VER + #ifdef _WIN32 // long long on MS Windows (Visual and GCC mingw compilers) have 64 bits // stdint.h is not available on Visual Studio prior to VS 2010 version typedef unsigned long long int ulint; @@ -205,7 +205,7 @@ namespace ttmath /*! on 64bit platforms one word (uint, sint) will be equal 64bits */ - #ifdef _MSC_VER + #ifdef _WIN32 /* in VC 'long' type has 32 bits, __int64 is VC extension */ typedef unsigned __int64 uint; typedef signed __int64 sint;