Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove a couple of MSC_VER stuff
[simgrid.git] / tools / cmake / test_prog / prog_thread_storage.c
index 86d2940..f83977e 100644 (file)
@@ -6,10 +6,14 @@
 
 #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) {
-
   thread_specific_variable++;
   printf("%d\n", thread_specific_variable);
   return 0;