Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cmake: further cleanups in the detection of sysv variables
[simgrid.git] / tools / cmake / test_prog / prog_thread_storage.c
index 86d2940db75201af6dd21a9e3f604cb6199ed4bb..edcab030ca14a54060baa83fde206cc0eabbd3f3 100644 (file)
@@ -6,7 +6,12 @@
 
 #include <stdio.h>
 
-__thread int thread_specific_variable = 0;
+#ifdef _MSC_VER
+__declspec(thread)
+#else 
+__thread 
+#endif
+int thread_specific_variable = 0;
 
 int main(void) {