]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Fix Makefile's GPL-notice to be similar to other files
[stockfish] / src / types.h
index 31e73bfbdbdabd76f72905c87de90ec14187f059..1a9dab7e4d45e1ce25890b1a5484d1e302d82b3f 100644 (file)
@@ -119,6 +119,15 @@ inline void __cpuid(int CPUInfo[4], int)
 }
 #endif
 
+// Define FORCE_INLINE macro to force inlining overriding compiler choice
+#if defined(_MSC_VER)
+#define FORCE_INLINE  __forceinline
+#elif defined(__GNUC__)
+#define FORCE_INLINE  inline __attribute__((always_inline))
+#elif
+#define FORCE_INLINE  inline
+#endif
+
 // Operators used by enum types like Depth, Piece, Square and so on.
 
 #define ENABLE_OPERATORS_ON(T) \