]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_file.cxx
Fix Linux compilation of netChat - explicit include of malloc.h required.
[simgear.git] / simgear / io / sg_file.cxx
index bbfc324707b4d132ec8344f1719df9bbf218900f..67fbda3eb9547f107a768cfaf64791a228a94742 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <string>
 
-#if defined(_MSC_VER) || defined(__MINGW32__)
+#ifdef _WIN32
 #  include <io.h>
 #endif
 
@@ -55,7 +55,7 @@ bool SGFile::open( const SGProtocolDir d ) {
     set_dir( d );
 
     if ( get_dir() == SG_IO_OUT ) {
-#if defined(_MSC_VER) || defined(__MINGW32__)
+#ifdef _WIN32
         int mode = 00666;
 #else
         mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;