From: Neal Gompa Date: Sun, 30 May 2010 06:04:17 +0000 (-0500) Subject: Added redefinition for MSVC X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=346d9e2d119ea3fa236905d5db018479f54c225f Added redefinition for MSVC --- diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 2328eb8..8138608 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -34,6 +34,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. using namespace std; +// Added more evilness needed for MSVC +#ifdef _MSC_VER + #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n) + #define snprintf(buf, size, format, ...) _sprintf_p(buf, size, format) +#endif + + extern float multiplier; extern XYZ viewer; extern int environment;