X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=2a3b41fab8f7ee234852deb6b9498f97fd72a031;hp=031cb0babda381b50f1643a9dfe2a945a3a12a02;hb=b1f57e92cea7bd36126ef8c26928d8991b74baef;hpb=bed4075580e87dd85c8c80dbd7c828268af2e324 diff --git a/src/types.h b/src/types.h index 031cb0ba..2a3b41fa 100644 --- a/src/types.h +++ b/src/types.h @@ -64,6 +64,12 @@ # define FORCE_INLINE inline #endif +#if defined(__GNUC__) +# define THREAD_LOCAL __thread +#else +# define THREAD_LOCAL __declspec(thread) +#endif + #if defined(USE_POPCNT) const bool HasPopCnt = true; #else