From 1df002de81fbfbf717276c71397b35d16ee80982 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 4 Jan 2006 09:08:35 +0000 Subject: [PATCH] MinGW fixes. --- simgear/misc/sg_path.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;