fix mingw
This commit is contained in:
@@ -490,7 +490,7 @@ std::string SGPath::realpath() const
|
|||||||
// This means relative paths cannot be used on Mac OS <= 10.5
|
// This means relative paths cannot be used on Mac OS <= 10.5
|
||||||
return path;
|
return path;
|
||||||
#else
|
#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
|
// with absPath NULL, will allocate, and ignore length
|
||||||
char *buf = _fullpath( NULL, path.c_str(), _MAX_PATH );
|
char *buf = _fullpath( NULL, path.c_str(), _MAX_PATH );
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#include "sample_group.hxx"
|
#include "sample_group.hxx"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
using std::isnan;
|
||||||
|
|
||||||
bool isNaN(float *v) {
|
bool isNaN(float *v) {
|
||||||
return (isnan(v[0]) || isnan(v[1]) || isnan(v[2]));
|
return (isnan(v[0]) || isnan(v[1]) || isnan(v[2]));
|
||||||
|
|||||||
Reference in New Issue
Block a user