Some portab fixes.

committer: mfx <mfx> 1058450658 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2003-07-17 14:04:18 +00:00
parent 9cb922425e
commit 66565f7238
14 changed files with 86 additions and 52 deletions
+5 -2
View File
@@ -33,10 +33,13 @@
#include "ui.h"
#define ALWAYS_CHMOD 1
#if defined(__DJGPP__)
# define USE_FTIME
#elif defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))
# undef ALWAYS_CHMOD
#elif ((ACC_OS_WIN32 || ACC_OS_WIN64) && (ACC_CC_INTELC || ACC_CC_MSC))
# define USE__FUTIME
# undef ALWAYS_CHMOD
#elif defined(HAVE_UTIME)
# define USE_UTIME
#endif
@@ -135,7 +138,7 @@ void do_one_file(const char *iname, char *oname)
flags |= O_TRUNC;
shmode = O_DENYRW;
#endif
#if defined(__DJGPP__) || defined(_MSC_VER)
#if !defined(ALWAYS_CHMOD)
// we can avoid the chmod() call below
int omode = st.st_mode;
fo.sopen(tname,flags,shmode,omode);