#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.