From 1b88542fbe38fc6242ff47a2fde09d1e128bdbca Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 1 Jan 2011 18:42:13 +0100 Subject: misc: Avoid redefine of _WIN32_IE. --- src/misc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/misc.c') diff --git a/src/misc.c b/src/misc.c index 9235770..493ea2f 100644 --- a/src/misc.c +++ b/src/misc.c @@ -33,15 +33,22 @@ #include #ifdef _WIN32 -#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath + +#ifndef _WIN32_IE +# define _WIN32_IE 0x0501 // SHGetSpecialFolderPath +#endif + #include // Must be the first to include #include #include #include + #if _MSC_VER >= 1400 -#include +# include #endif /* _MSC_VER */ + #else /* _WIN32 */ + /* This is needed for a standard getpwuid_r on opensolaris */ #define _POSIX_PTHREAD_SEMANTICS #include -- cgit