We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65879c6 commit f970adeCopy full SHA for f970ade
include/qt_macros.h
@@ -1,7 +1,16 @@
1
#ifndef QT_MACROS_H
2
#define QT_MACROS_H
3
4
+// Work around OSX currently refusing to support threads.h
5
+#if 201112L <= __STDC_VERSION__ && __STDC_VERSION__ < 202311L
6
+#if defined(__gnu_linux__) || defined(_WIN64) || defined(__FreeBSD__) || defined(__NetBSD__)
7
#include <threads.h>
8
+#else
9
+#define thread_local _Thread_local
10
+#endif
11
+#elif __STDC_VERSION__ < 201112L
12
+#error "C11 is required"
13
14
15
#ifdef HAVE_CONFIG_H
16
#include <config.h>
0 commit comments