stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r449799 - /incubator/stdcxx/trunk/etc/config/src/TLS.cpp
Date Mon, 25 Sep 2006 20:09:53 GMT
Author: sebor
Date: Mon Sep 25 13:09:52 2006
New Revision: 449799

URL: http://svn.apache.org/viewvc?view=rev&rev=449799
Log:
2006-09-25  Martin Sebor  <sebor@roguewave.com>

	* TLS.cpp (_RWSTD_THREAD_STR): Removed unused macro.
	(PRINT_MACRO): Corrected ill-formed preprocessor concatenation.

Modified:
    incubator/stdcxx/trunk/etc/config/src/TLS.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/TLS.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/TLS.cpp?view=diff&rev=449799&r1=449798&r2=449799
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/TLS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/TLS.cpp Mon Sep 25 13:09:52 2006
@@ -2,16 +2,14 @@
 
 #include <stdio.h>
 
-#ifdef _MSC_VER
-#define _RWSTD_THREAD __declspec (thread)
-#define _RWSTD_THREAD_STR "__declspec (thread)"
+#if defined (_MSC_VER)
+#  define _RWSTD_THREAD __declspec (thread)
 #else
-#define _RWSTD_THREAD __thread
-#define _RWSTD_THREAD_STR "__thread"
+#  define _RWSTD_THREAD __thread
 #endif
 
 #define STR(x) #x
-#define PRINT_MACRO(name) printf ("#define " #name " " STR(##name) "\n")
+#define PRINT_MACRO(name) printf ("#define " #name " " STR (name) "\n")
 
 _RWSTD_THREAD int tls_i;
 
@@ -25,7 +23,7 @@
     int result = tls_i + tls_static_array [0] + tls_extern_array [0];
 
     if (0 == result)
-        PRINT_MACRO(_RWSTD_THREAD);
+        PRINT_MACRO (_RWSTD_THREAD);
 
     return result;
 }



Mime
View raw message