Sfoglia il codice sorgente

fix #421: #define _WIN32_WINNT 0x0600

ithewei 1 anno fa
parent
commit
9e3e60616f
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      base/hplatform.h

+ 6 - 0
base/hplatform.h

@@ -143,6 +143,12 @@
 
 
 // headers
 // headers
 #ifdef OS_WIN
 #ifdef OS_WIN
+    #ifndef _WIN32_WINNT
+    #define _WIN32_WINNT 0x0600
+    #elif _WIN32_WINNT < 0x0600
+    #undef _WIN32_WINNT
+    #define _WIN32_WINNT 0x0600
+    #endif
     #ifndef WIN32_LEAN_AND_MEAN
     #ifndef WIN32_LEAN_AND_MEAN
     #define WIN32_LEAN_AND_MEAN
     #define WIN32_LEAN_AND_MEAN
     #endif
     #endif