X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/983ca84f3ac2d74ba56145026d89bd11f3f096e5..72524c346ddad2bbb97217cf981a423676353b6b:/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 86d2940db7..edcab030ca 100644 --- a/tools/cmake/test_prog/prog_thread_storage.c +++ b/tools/cmake/test_prog/prog_thread_storage.c @@ -6,7 +6,12 @@ #include -__thread int thread_specific_variable = 0; +#ifdef _MSC_VER +__declspec(thread) +#else +__thread +#endif +int thread_specific_variable = 0; int main(void) {