diff --git a/src/misc.c b/src/misc.c index 92357703..493ea2f8 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