Просмотр исходного кода

core: so that Windows is happy

Daniele Bartolini 7 лет назад
Родитель
Сommit
660a4e3231
2 измененных файлов с 5 добавлено и 3 удалено
  1. 3 3
      src/core/platform.h
  2. 2 0
      src/core/thread/condition_variable.cpp

+ 3 - 3
src/core/platform.h

@@ -49,9 +49,9 @@
 	#undef CROWN_PLATFORM_WINDOWS
 // http://msdn.microsoft.com/en-us/library/6sehtctf.aspx
 	#if !defined(WINVER) && !defined(_WIN32_WINNT)
-// Windows Vista and above
-		#define WINVER 0x0600
-		#define _WIN32_WINNT 0x0600
+// Windows Server 2003 with SP1, Windows XP with SP2 and above
+		#define WINVER 0x0501
+		#define _WIN32_WINNT 0x0501
 	#endif // !defined(WINVER) && !defined(_WIN32_WINNT)
 	#define CROWN_PLATFORM_WINDOWS 1
 #elif defined(__ANDROID__)

+ 2 - 0
src/core/thread/condition_variable.cpp

@@ -3,6 +3,8 @@
  * License: https://github.com/dbartolini/crown/blob/master/LICENSE
  */
 
+#define WINVER 0x0601
+#define _WIN32_WINNT 0x0601
 #include "core/thread/condition_variable.h"
 
 namespace crown