src/cx/common.h

changeset 1692
56731bb98508
parent 1675
36c0fb2b60b2
--- a/src/cx/common.h	Wed Dec 31 14:58:52 2025 +0100
+++ b/src/cx/common.h	Wed Dec 31 15:11:12 2025 +0100
@@ -266,9 +266,11 @@
 #ifdef _MSC_VER
 #define cx_thread_local __declspec(thread)
 #else // ! _MSC_VER
-#if __STDC_VERSION__ < 202300L
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 202300L
+/** Platform independent thread-local macro. */
 #define cx_thread_local _Thread_local
 #else // C23 or newer
+/** Platform independent thread-local macro. */
 #define cx_thread_local thread_local
 #endif // C23
 #endif // _MSC_VER

mercurial