소스 검색

make GCC happy

Grant Limberg 5 년 전
부모
커밋
cb342bfb12
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      core/OS.hpp

+ 4 - 0
core/OS.hpp

@@ -75,7 +75,11 @@
 
 #ifdef __GNUC__
 #ifndef ZT_DEBUG
+#ifdef __clang__
 #define ZT_INLINE __attribute__((always_inline)) inline
+#else
+#define ZT_INLINE inline
+#endif
 #endif
 #ifndef restrict
 #define restrict __restrict__