]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Use thread_local compiler specifics
[stockfish] / src / types.h
index 031cb0babda381b50f1643a9dfe2a945a3a12a02..2a3b41fab8f7ee234852deb6b9498f97fd72a031 100644 (file)
 #  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