src/cx/common.h

changeset 1692
56731bb98508
parent 1675
36c0fb2b60b2
equal deleted inserted replaced
1691:5e608d0e5bd1 1692:56731bb98508
264 #define cx_thread_local thread_local 264 #define cx_thread_local thread_local
265 #else // ! __cplusplus 265 #else // ! __cplusplus
266 #ifdef _MSC_VER 266 #ifdef _MSC_VER
267 #define cx_thread_local __declspec(thread) 267 #define cx_thread_local __declspec(thread)
268 #else // ! _MSC_VER 268 #else // ! _MSC_VER
269 #if __STDC_VERSION__ < 202300L 269 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 202300L
270 /** Platform independent thread-local macro. */
270 #define cx_thread_local _Thread_local 271 #define cx_thread_local _Thread_local
271 #else // C23 or newer 272 #else // C23 or newer
273 /** Platform independent thread-local macro. */
272 #define cx_thread_local thread_local 274 #define cx_thread_local thread_local
273 #endif // C23 275 #endif // C23
274 #endif // _MSC_VER 276 #endif // _MSC_VER
275 #endif // __cplusplus 277 #endif // __cplusplus
276 278

mercurial