]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_file.cxx
Tidy up the autoconf/automake configuration a bit.
[simgear.git] / simgear / io / sg_file.cxx
index e8c7bb8e9ec7c01a0cd51e550556e1705ec02ae2..79cec7b7328bcf6dd8662ea2aa92ce8e04391fdf 100644 (file)
@@ -25,7 +25,7 @@
 
 #include STL_STRING
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW32__)
 #  include <io.h>
 #endif
 
@@ -51,7 +51,7 @@ bool SGFile::open( const SGProtocolDir d ) {
     set_dir( d );
 
     if ( get_dir() == SG_IO_OUT ) {
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__MINGW32__)
         int mode = 00666;
 #else
         mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;