Temporary build fix for OpenEXR.
* It seems hex floats are not allowed in C++. * I will fix this more cleanly, but it needs another rebuild of the gcc2 package. Until then, this lets haiku compile.
This commit is contained in:
@@ -46,6 +46,10 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
#undef LDBL_EPSILON
|
#undef LDBL_EPSILON
|
||||||
#define LDBL_EPSILON 2.2204460492503131e-16L
|
#define LDBL_EPSILON 2.2204460492503131e-16L
|
||||||
|
#undef LDBL_MAX
|
||||||
|
#undef LDBL_MIN
|
||||||
|
extern "C" long double LDBL_MAX;
|
||||||
|
extern "C" long double LDBL_MIN;
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
//------------------------------------------
|
//------------------------------------------
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ for architectureObject in [ MultiArchSubDirSetup ] {
|
|||||||
ImathRandom.cpp
|
ImathRandom.cpp
|
||||||
ImathShear.cpp
|
ImathShear.cpp
|
||||||
ImathVec.cpp
|
ImathVec.cpp
|
||||||
|
gcc2fix.c
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
// C++ doesn't handle hex floats properly...
|
||||||
|
long double LDBL_MAX = 0xfffffffffffffffp16320l;
|
||||||
|
long double LDBL_MIN = 0x1p-16382l;
|
||||||
Reference in New Issue
Block a user