X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b2f752feb35d35e191205da26b5522038c04c2b6..63c371bbca5afccc4708761d83af6fc2443ca553:/tools/cmake/test_prog/prog_thread_storage.c diff --git a/tools/cmake/test_prog/prog_thread_storage.c b/tools/cmake/test_prog/prog_thread_storage.c index edcab030ca..e79536e41b 100644 --- a/tools/cmake/test_prog/prog_thread_storage.c +++ b/tools/cmake/test_prog/prog_thread_storage.c @@ -6,15 +6,9 @@ #include -#ifdef _MSC_VER -__declspec(thread) -#else -__thread -#endif -int thread_specific_variable = 0; +__thread int thread_specific_variable = 0; int main(void) { - thread_specific_variable++; printf("%d\n", thread_specific_variable); return 0;