projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
14c28ae
)
include/share/compat.h : Simplify.
author
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sat, 23 Mar 2013 11:02:56 +0000
(22:02 +1100)
committer
Erik de Castro Lopo
<erikd@mega-nerd.com>
Sat, 23 Mar 2013 11:02:56 +0000
(22:02 +1100)
include/share/compat.h
patch
|
blob
|
history
diff --git
a/include/share/compat.h
b/include/share/compat.h
index
ee4c3e5
..
64139a2
100644
(file)
--- a/
include/share/compat.h
+++ b/
include/share/compat.h
@@
-94,27
+94,25
@@
#endif
#if defined _MSC_VER || defined __MINGW32__
#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 <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 */
#include <fcntl.h> /* for _O_BINARY */
+#else
+#include <unistd.h> /* for chown(), unlink() */
#endif
#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
#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() */
#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
#endif
#if defined _MSC_VER