From 8e66e534ae7bd4e58322ea14b25067dfeda8f1a2 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 21 May 2004 15:07:25 +0000 Subject: [PATCH] mingw32 fix --- simgear/scene/sky/cloud.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simgear/scene/sky/cloud.cxx b/simgear/scene/sky/cloud.cxx index 606dd52a..e5b475ae 100644 --- a/simgear/scene/sky/cloud.cxx +++ b/simgear/scene/sky/cloud.cxx @@ -24,10 +24,13 @@ // #if defined (__APPLE__) // // any C++ header file undefines isinf and isnan // // so this should be included before -// inline int (isinf)(double r) { return isinf(r); } // inline int (isnan)(double r) { return isnan(r); } // #endif +#if defined(__MINGW32__) +#define isnan(x) _isnan(x) +#endif + // #include STL_IOSTREAM #include -- 2.39.5