Fixed function feature test for Visual Studio 2012
authorSam Lantinga <slouken@libsdl.org>
Sun, 13 Oct 2013 19:51:58 -0700
changeset 7812 c50a384be081
parent 7811 9dfcc6bad831
child 7813 d8fb783475d5
Fixed function feature test for Visual Studio 2012 norfanin Fixes the version check for some functions that are only present with the MSVC 2013 CRT libraries. I did my testing wrong and failed to see that 2012 doesn't have these functions. Microsoft implemented them in their upcoming 2013 version, though. The attached patch changes it to the check for the next version. I also removed the HAVE_ITOA because that would require linking with oldnames.lib and it's easier to just let the SDL implementation take over.
include/SDL_config_windows.h
--- a/include/SDL_config_windows.h	Sun Oct 13 19:49:45 2013 -0700
+++ b/include/SDL_config_windows.h	Sun Oct 13 19:51:58 2013 -0700
@@ -128,8 +128,7 @@
 #define HAVE_SIN 1
 #define HAVE_SINF 1
 #define HAVE_SQRT 1
-#if _MSC_VER >= 1700
-#define HAVE_ITOA 1
+#if _MSC_VER >= 1800
 #define HAVE_STRTOLL 1
 #define HAVE_SSCANF 1
 #define HAVE_COPYSIGN 1