]> granicus.if.org Git - curl/commitdiff
better preprocessor check for recent MSVC versions
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Dec 2006 15:24:18 +0000 (15:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Dec 2006 15:24:18 +0000 (15:24 +0000)
lib/config-win32.h

index 8efdf209b6b76d4645b0ddab2a7eefcbaa3a7975..b9703cfcf0398127bb6dcf4b96898c2c1b0c524e 100644 (file)
 /* Undef keyword 'const' if it does not work.  */
 /* #undef const */
 
-#if _MSC_VER > 1310
+#if defined(_MSC_VER) && (_MSC_VER > 1310)
 /* MSVC 2003 has gmtime_r */
 #define HAVE_GMTIME_R
 #endif