Skip to content

Commit 032dbc4

Browse files
author
Nadezhda Samartseva
committed
[FIX] changing the order of checking the STDC version
1 parent f23b456 commit 032dbc4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/gl/loader.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,10 @@ EXPORT extern void *egl;
131131

132132
#if defined(_WIN32) || defined(_WIN64)
133133
#define THREAD_LOCAL __declspec(thread)
134-
#elif (__STDC_VERSION__ >= 201112L) // >= C11
135-
#define THREAD_LOCAL _Thread_local
136134
#elif (__STDC_VERSION__ > 201710L) // > C23
137-
#undef THREAD_LOCAL
138135
#define THREAD_LOCAL thread_local
136+
#elif (__STDC_VERSION__ >= 201112L) // >= C11
137+
#define THREAD_LOCAL _Thread_local
139138
#elif defined (__GCC__) || defined(__clang__)
140139
#define THREAD_LOCAL __thread
141140
#else

0 commit comments

Comments
 (0)