aboutsummaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-09-11 17:07:50 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-02-08 09:41:04 +0100
commit0626feeed1c998159fb8c7c5a752836a543fb2c8 (patch)
treebbc28a83b777391bfa5789d68ca33604e9a8ee98 /config.h.cmake
parent228974705c2860cfb0ae82460ce2ad8e642491a5 (diff)
downloadcmocka-0626feeed1c998159fb8c7c5a752836a543fb2c8.tar.gz
cmocka-0626feeed1c998159fb8c7c5a752836a543fb2c8.tar.xz
cmocka-0626feeed1c998159fb8c7c5a752836a543fb2c8.zip
cmake: Add configure checks for thread local storage.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 1550ff9..3c47a7d 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -117,6 +117,12 @@
/**************************** OPTIONS ****************************/
+/* Check if we have TLS support with GCC */
+#cmakedefine HAVE_GCC_THREAD_LOCAL_STORAGE 1
+
+/* Check if we have TLS support with MSVC */
+#cmakedefine HAVE_MSVC_THREAD_LOCAL_STORAGE 1
+
/*************************** ENDIAN *****************************/
#cmakedefine WORDS_SIZEOF_VOID_P ${WORDS_SIZEOF_VOID_P}