1
0
forked from 0ad/0ad

VC2005 fix

This was SVN commit r780.
This commit is contained in:
Ykkrosh 2004-07-20 17:19:30 +00:00
parent 4fa5aabfcf
commit 1f942c2784

View File

@ -168,7 +168,17 @@ typedef unsigned int mode_t;
// we implement our own, but use the CRT struct definition.
// rename the VC function definition to avoid conflict.
#define stat vc_stat
//
// Extra hack for VC++ 2005, since it defines inline stat/fstat
// functions inside stat.h (which get confused by the
// macro-renaming of "stat")
# if _MSC_VER >= 1400
# define RC_INVOKED // stat.h only includes stat.inl if "!defined(RC_INVOKED) && !defined(__midl)"
# include <sys/stat.h>
# undef RC_INVOKED
# else
# include <sys/stat.h>
# endif
#undef stat
extern int mkdir(const char*, mode_t);