Commit 01c924fa9ee5bd91d048739b4eea19719ba00f03

Sam Lantinga 2019-03-19T17:20:54

Hopefully fixed the mingw32 build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/thread/windows/SDL_systls.c b/src/thread/windows/SDL_systls.c
index f2ef37a..4c1bd03 100644
--- a/src/thread/windows/SDL_systls.c
+++ b/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