From 1f942c2784e5e9ad5a69df05f2118049e1d6038b Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Tue, 20 Jul 2004 17:19:30 +0000 Subject: [PATCH] VC2005 fix This was SVN commit r780. --- source/lib/sysdep/win/wposix.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/lib/sysdep/win/wposix.h b/source/lib/sysdep/win/wposix.h index f65b080da0..71512718a9 100755 --- a/source/lib/sysdep/win/wposix.h +++ b/source/lib/sysdep/win/wposix.h @@ -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 -#include +// +// 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 +# undef RC_INVOKED +# else +# include +# endif #undef stat extern int mkdir(const char*, mode_t);