diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-23 22:02:56 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2013-03-23 22:02:56 +1100 |
commit | 9a93680d2b2c416aa10434fc5a3d6c67b729a462 (patch) | |
tree | 990cb2d8ad0fe5d60cd1c73713b4d61bcb4111d1 /include | |
parent | 14c28ae48516cba9995ef06a6e525b7152d157c1 (diff) | |
download | flac-9a93680d2b2c416aa10434fc5a3d6c67b729a462.tar.gz |
include/share/compat.h : Simplify.
Diffstat (limited to 'include')
-rw-r--r-- | include/share/compat.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/share/compat.h b/include/share/compat.h index ee4c3e50..64139a2e 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -94,27 +94,25 @@ #endif #if defined _MSC_VER || defined __MINGW32__ -#include <io.h> /* for _setmode() */ +#include <io.h> /* for _setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ #endif #if defined __CYGWIN__ || defined __EMX__ -#include <io.h> /* for setmode(), O_BINARY */ +#include <io.h> /* for setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ +#else +#include <unistd.h> /* for chown(), unlink() */ #endif - #if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ #if defined __BORLANDC__ #include <utime.h> /* for utime() */ #else #include <sys/utime.h> /* for utime() */ #endif -#include <io.h> /* for chmod() */ -#include <sys/types.h> /* for off_t */ #else #include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */ #include <utime.h> /* for utime() */ -#include <unistd.h> /* for chown(), unlink() */ #endif #if defined _MSC_VER |