Haiku: force undefine INFINITY for GCC2 as it's not const

It's defined as a non-const inline union...
This commit is contained in:
François Revol 2017-01-25 03:00:30 +01:00
parent 7e347a7c84
commit 80c9d94ffb

View File

@ -26,6 +26,10 @@
extern "C" {
#endif
#if defined(__HAIKU__) && __GNUC__ < 3
#undef INFINITY
#endif
#ifdef INFINITY
static const float kInfinity = INFINITY;
#else