From 63c7d641439ec0a50487b5095e3deade76af34db Mon Sep 17 00:00:00 2001 From: Hooray Date: Mon, 4 Feb 2013 11:17:17 +0100 Subject: [PATCH] fix mingw --- simgear/misc/sg_path.cxx | 2 +- simgear/sound/sample_group.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx index e9ae0a01..2b4536a0 100644 --- a/simgear/misc/sg_path.cxx +++ b/simgear/misc/sg_path.cxx @@ -490,7 +490,7 @@ std::string SGPath::realpath() const // This means relative paths cannot be used on Mac OS <= 10.5 return path; #else - #if defined(_MSC_VER) + #if defined(_MSC_VER) /*for MS compilers */ || defined(_WIN32) /*needed for non MS windows compilers like MingW*/ // with absPath NULL, will allocate, and ignore length char *buf = _fullpath( NULL, path.c_str(), _MAX_PATH ); #else diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx index 33cf2bce..c91ca543 100644 --- a/simgear/sound/sample_group.cxx +++ b/simgear/sound/sample_group.cxx @@ -34,6 +34,7 @@ #include "sample_group.hxx" using std::string; +using std::isnan; bool isNaN(float *v) { return (isnan(v[0]) || isnan(v[1]) || isnan(v[2])); -- 2.39.5