Browse Source

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

Psychotropos 7 years ago
parent
commit
314cee133a
1 changed files with 1 additions and 1 deletions
  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
 // This is a workaround for a glibc bug that is triggered by clang when
 // compiling with -ffast-math.
 // compiling with -ffast-math.
-#ifdef __clang__
+#if defined(__clang__) && defined(__GLIBC__)
 #include <sys/cdefs.h>
 #include <sys/cdefs.h>
 #ifndef __extern_always_inline
 #ifndef __extern_always_inline
 #define __extern_always_inline extern __always_inline
 #define __extern_always_inline extern __always_inline