From 01c924fa9ee5bd91d048739b4eea19719ba00f03 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 19 Mar 2019 17:20:54 -0700 Subject: [PATCH] Hopefully fixed the mingw32 build --- src/thread/windows/SDL_systls.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/thread/windows/SDL_systls.c b/src/thread/windows/SDL_systls.c index f2ef37aff..4c1bd038a 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 + +#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