Very preliminary work with Visual Studio 2015 Community RC/RTM, resolve some version-specific build errors:

1. Standard library functions snprintf & vsnprintf are available thusly named (without the prepended underscores).  Someone may want to check my conditionals against non-MSVC compilers, though.
2. zone/bonuses.cpp throws an internal compiler error with optimize enabled; #pragma disable optimization on VS2015 only on function Mob::NegateSpellBonuses works around it.
This commit is contained in:
Kemmler
2015-07-18 16:56:41 -04:00
parent c91374444b
commit 5952610a7b
6 changed files with 37 additions and 11 deletions
+3 -1
View File
@@ -23,7 +23,9 @@
*/
#ifdef _WINDOWS
#define snprintf _snprintf
#if (!defined(_MSC_VER) || (defined(_MSC_VER) && _MSC_VER < 1900))
#define snprintf _snprintf
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
+3 -1
View File
@@ -43,7 +43,9 @@ typedef unsigned char uchar;
typedef const char Const_char; //for perl XS
#ifdef _WINDOWS
#define snprintf _snprintf
#if (!defined(_MSC_VER) || (defined(_MSC_VER) && _MSC_VER < 1900))
#define snprintf _snprintf
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
typedef void ThreadReturnType;