Browse Source

Hopefully fixed the mingw32 build

Sam Lantinga 6 years ago
parent
commit
01c924fa9e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/thread/windows/SDL_systls.c

+ 5 - 0
src/thread/windows/SDL_systls.c

@@ -29,7 +29,12 @@
 #include "../SDL_thread_c.h"
 
 #if WINAPI_FAMILY_WINRT
+#include <fibersapi.h>
+
+#ifndef TLS_OUT_OF_INDEXES
 #define TLS_OUT_OF_INDEXES  FLS_OUT_OF_INDEXES
+#endif
+
 #define TlsAlloc()  FlsAlloc(NULL)
 #define TlsSetValue FlsSetValue
 #define TlsGetValue FlsGetValue