Move code inside #ifdef _MSC_VER to compat.h.

This commit is contained in:
Erik de Castro Lopo
2012-06-22 16:03:04 +10:00
parent 5b62b770bc
commit a7e3705d05
5 changed files with 32 additions and 42 deletions

View File

@@ -38,19 +38,6 @@
#include <stdlib.h>
#include <string.h>
#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
#include <sys/stat.h> /* for stat(), maybe chmod() */
#include "private/metadata.h"