include/share/compat.h : Simplify.
This commit is contained in:
parent
14c28ae485
commit
9a93680d2b
@ -94,27 +94,25 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined _MSC_VER || defined __MINGW32__
|
#if defined _MSC_VER || defined __MINGW32__
|
||||||
#include <io.h> /* for _setmode() */
|
#include <io.h> /* for _setmode(), chmod() */
|
||||||
#include <fcntl.h> /* for _O_BINARY */
|
#include <fcntl.h> /* for _O_BINARY */
|
||||||
#endif
|
#endif
|
||||||
#if defined __CYGWIN__ || defined __EMX__
|
#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 _MSC_VER || defined __BORLANDC__ || defined __MINGW32__
|
||||||
#if defined __BORLANDC__
|
#if defined __BORLANDC__
|
||||||
#include <utime.h> /* for utime() */
|
#include <utime.h> /* for utime() */
|
||||||
#else
|
#else
|
||||||
#include <sys/utime.h> /* for utime() */
|
#include <sys/utime.h> /* for utime() */
|
||||||
#endif
|
#endif
|
||||||
#include <io.h> /* for chmod() */
|
|
||||||
#include <sys/types.h> /* for off_t */
|
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */
|
#include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */
|
||||||
#include <utime.h> /* for utime() */
|
#include <utime.h> /* for utime() */
|
||||||
#include <unistd.h> /* for chown(), unlink() */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined _MSC_VER
|
#if defined _MSC_VER
|
||||||
|
Loading…
Reference in New Issue
Block a user