Revision: 55023
http://brlcad.svn.sourceforge.net/brlcad/?rev=55023&view=rev
Author: brlcad
Date: 2013-04-03 06:04:18 +0000 (Wed, 03 Apr 2013)
Log Message:
-----------
initial attempt at testing for TLS type specifiers
Modified Paths:
--------------
brlcad/trunk/CMakeLists.txt
Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2013-04-03 05:54:13 UTC (rev 55022)
+++ brlcad/trunk/CMakeLists.txt 2013-04-03 06:04:18 UTC (rev 55023)
@@ -1624,6 +1624,15 @@
BRLCAD_TYPE_SIZE("uintptr_t" "")
BRLCAD_TYPE_SIZE("sig_t" "signal.h")
+# see if we have a TLS intrinsic
+BRLCAD_TYPE_SIZE("thread_local int" "") # C++11
+if (NOT HAVE_THREAD_LOCAL_INT)
+ BRLCAD_TYPE_SIZE("__thread int" "") # GCC except Mac OS X
+ if (NOT HAVE___THREAD_INT)
+ BRLCAD_TYPE_SIZE("__declspec(thread) int" "") # Windows
+ endif (NOT HAVE___THREAD_INT)
+endif (NOT HAVE_THREAD_LOCAL_INT)
+
# see if the compiler supports %z as a size_t print width specifier
BRLCAD_CHECK_C99_FORMAT_SPECIFIERS()
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits