aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_funcs.h
diff options
context:
space:
mode:
authorFerenc Arn2017-06-14 10:11:53 -0500
committerFerenc Arn2017-06-14 18:30:22 -0500
commitcd1e14b1da0578aef1566e48b092a84b846372a6 (patch)
treed810dc324c9894251d7348f0e798356ece8c9c52 /core/math/math_funcs.h
parentb21a1232baf9db42cc57e32ecaf5abc0d0b05c86 (diff)
downloadgodot-cd1e14b1da0578aef1566e48b092a84b846372a6.tar.gz
godot-cd1e14b1da0578aef1566e48b092a84b846372a6.tar.zst
godot-cd1e14b1da0578aef1566e48b092a84b846372a6.zip
Diffstat (limited to 'core/math/math_funcs.h')
-rw-r--r--core/math/math_funcs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h
index dd64b10f8..45509a080 100644
--- a/core/math/math_funcs.h
+++ b/core/math/math_funcs.h
@@ -110,8 +110,8 @@ public:
static _ALWAYS_INLINE_ bool is_inf(double p_val) {
#ifdef _MSC_VER
return !_finite(p_val);
-// workaround for mingw builds on travis
-#elif defined(__MINGW32__) || defined(__MINGW64__)
+// use an inline implementation of isinf as a workaround for problematic libstdc++ versions from gcc 5.x era
+#elif defined(__GNUC__) && __GNUC__ < 6
union {
uint64_t u;
double f;
@@ -127,8 +127,8 @@ public:
static _ALWAYS_INLINE_ bool is_inf(float p_val) {
#ifdef _MSC_VER
return !_finite(p_val);
-// workaround for mingw builds on travis
-#elif defined(__MINGW32__) || defined(__MINGW64__)
+// use an inline implementation of isinf as a workaround for problematic libstdc++ versions from gcc 5.x era
+#elif defined(__GNUC__) && __GNUC__ < 6
union {
uint32_t u;
float f;