From: ehofman Date: Wed, 4 Jan 2006 09:08:35 +0000 (+0000) Subject: MinGW fixes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1df002de81fbfbf717276c71397b35d16ee80982;p=simgear.git MinGW fixes. --- diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx index cee7df45..8193a03f 100644 --- a/simgear/misc/sg_path.cxx +++ b/simgear/misc/sg_path.cxx @@ -30,7 +30,7 @@ #include #include #include -#ifdef _MSC_VER +#if defined( _MSC_VER) || defined(__MINGW32__) # include #endif #include "sg_path.hxx" @@ -187,7 +187,7 @@ bool SGPath::exists() const { return true; } -#ifdef _MSC_VER +#if defined( _MSC_VER) || defined(__MINGW32__) # define sgMkDir(d,m) _mkdir(d) #else # define sgMkDir(d,m) mkdir(d,m) @@ -203,7 +203,7 @@ void SGPath::create_dir( mode_t mode ) { int i = 1; SGPath dir = absolute ? string( 1, sgDirPathSep ) : ""; dir.concat( path_elements[0] ); -#ifdef _MSC_VER +#if defined( _MSC_VER) || defined(__MINGW32__) if ( dir.str().find(':') != string::npos && path_elements.size() >= 2 ) { dir.append( path_elements[1] ); i = 2;