Switch off STB thread local support.

Quake II is a single threaded application, so we don't require STB to be
thread save. Omitting thread local support prevents mingw from requiring
pthreads.
This commit is contained in:
Yamagi 2022-06-13 07:14:57 +02:00
parent ed0b80a3d4
commit 6729698611

View file

@ -37,6 +37,8 @@
#define STBI_MALLOC(sz) malloc(sz) #define STBI_MALLOC(sz) malloc(sz)
#define STBI_REALLOC(p,sz) realloc(p,sz) #define STBI_REALLOC(p,sz) realloc(p,sz)
#define STBI_FREE(p) free(p) #define STBI_FREE(p) free(p)
// Switch of the thread local stuff. Breaks mingw under Windows.
#define STBI_NO_THREAD_LOCALS
// include implementation part of stb_image into this file // include implementation part of stb_image into this file
#define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" #include "stb_image.h"