Skip to content

Commit

Permalink
opengl: MOJOSHADER_THREADLOCAL can use __declspec(thread) on MinGW no…
Browse files Browse the repository at this point in the history
…w, I think...?
  • Loading branch information
flibitijibibo committed Oct 18, 2024
1 parent 9eea5d1 commit 1df57d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ struct MOJOSHADER_glContext

#ifdef MOJOSHADER_NO_THREAD_LOCAL
#define MOJOSHADER_THREADLOCAL
#elif defined(_MSC_VER)
#elif defined(_WIN32)
#define MOJOSHADER_THREADLOCAL __declspec(thread)
#elif defined(__GNUC__) || defined(__clang__)
#define MOJOSHADER_THREADLOCAL __thread
Expand Down

0 comments on commit 1df57d1

Please sign in to comment.