fix mingw

This commit is contained in:
Hooray
2013-02-04 11:17:17 +01:00
committed by James Turner
parent 1784327c47
commit 63c7d64143
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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]));