include/share/compat.h : Include cleanup.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 7 Apr 2013 08:41:14 +0000 (18:41 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 7 Apr 2013 08:41:24 +0000 (18:41 +1000)
Patch from Janne Hyvärinen <cse@sci.fi>.

include/share/compat.h

index 88caf1e..222de65 100644 (file)
 #define FLAC__STRNCASECMP strncasecmp
 #endif
 
-#if defined _MSC_VER || defined __MINGW32__
+#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__
 #include <io.h> /* for _setmode(), chmod() */
 #include <fcntl.h> /* for _O_BINARY */
-#endif
-#if defined __CYGWIN__ || defined __EMX__
-#include <io.h> /* for setmode(), chmod() */
-#include <fcntl.h> /* for _O_BINARY */
 #else
 #include <unistd.h> /* for chown(), unlink() */
 #endif