mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 22:51:30 +02:00
Fix pthread deprecation warning, fixes #502
This commit is contained in:
@@ -473,7 +473,7 @@ elif GetOption('release'):
|
||||
|
||||
if GetOption('static'):
|
||||
if platform == "Windows":
|
||||
env.Append(CPPDEFINES=['PTW32_STATIC_LIB'])
|
||||
env.Append(CPPDEFINES=['_PTW32_STATIC_LIB'])
|
||||
if msvc:
|
||||
env.Append(CPPDEFINES=['ZLIB_WINAPI'])
|
||||
else:
|
||||
|
@@ -16,4 +16,11 @@
|
||||
#include <pthread.h>
|
||||
#undef GetUserName
|
||||
|
||||
// Fix deprecation warnings with recent pthread versions on Windows
|
||||
#ifdef _PTW32_STATIC_LIB
|
||||
#if PTW32_VERSION =< 2, 8, 0, 0
|
||||
#define PTW32_STATIC_LIB
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user