avoid defining macros already present on mingw32

This commit is contained in:
KIU Shueng Chuan committed 2013-02-23 10:37:45 +08:00
1 parent 1c6036c3ac
commit 08708435a7
2 files changed
+10

No files matched your search

+7
View File
@@ -41,8 +41,15 @@
#include <windows.h>
#include <winsvc.h>
#include <shlobj.h>
#ifndef PATH_MAX
#define PATH_MAX MAX_PATH
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) ((x) & _S_IFDIR)
#endif
#define DIRSEP '\\'
#define snprintf _snprintf
#define vsnprintf _vsnprintf