mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
Attempt to work around glibc bug when using clang with -ffast-math
This commit is contained in:
parent
79d025e9a8
commit
4f27ed600f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user