ソースを参照

dtoolbase: The bug in question is glibc-specific, treat it as such.

Psychotropos 7 年 前
コミット
314cee133a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      dtool/src/dtoolbase/dtoolbase.h

+ 1 - 1
dtool/src/dtoolbase/dtoolbase.h

@@ -123,7 +123,7 @@
 
 // This is a workaround for a glibc bug that is triggered by clang when
 // compiling with -ffast-math.
-#ifdef __clang__
+#if defined(__clang__) && defined(__GLIBC__)
 #include <sys/cdefs.h>
 #ifndef __extern_always_inline
 #define __extern_always_inline extern __always_inline