Attempt to work around glibc bug when using clang with -ffast-math

This commit is contained in:
rdb 2015-02-09 22:15:41 +01:00
parent 79d025e9a8
commit 4f27ed600f

View File

@ -103,6 +103,15 @@
#endif
#endif
// This is a workaround for a glibc bug that is triggered by
// clang when compiling with -ffast-math.
#ifdef __clang__
#include <sys/cdefs.h>
#ifndef __extern_always_inline
#define __extern_always_inline extern __always_inline
#endif
#endif
#ifdef HAVE_PYTHON
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE