[Win] Clean up some 64-bit warnings from Visual Studio analyzer
[WebKit-https.git] / Source / WTF / config.h
index 4c3485234ec2d96a6b7b296dc60a3db44cef7d7b..5c223160ea6ce2a2e8a06ff3fbec6ce9ff3288aa 100644 (file)
 #if OS(WINDOWS)
 
 #ifndef _WIN32_WINNT
+#if defined(_M_X64) || defined(__x86_64__) 
+#define _WIN32_WINNT 0x600
+#else
 #define _WIN32_WINNT 0x0502
 #endif
+#endif
 
 #ifndef WINVER
+#if defined(_M_X64) || defined(__x86_64__) 
+#define WINVER 0x0600
+#else
 #define WINVER 0x0502
 #endif
+#endif
 
 #if !COMPILER(MSVC7_OR_LOWER) && !OS(WINCE)
 // We need to define this before the first #include of stdlib.h or it won't contain rand_s.