Commit 274f0b9371d26a2e65a7d8842978dc92562b4c34

Edward Thomson 2015-07-15T09:17:35

Merge pull request #3311 from Fallso/MacroRedefinition Fix macro redefinition warning

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/thread-utils.c b/src/thread-utils.c
index c3baf41..dc9b2f0 100644
--- a/src/thread-utils.c
+++ b/src/thread-utils.c
@@ -8,7 +8,9 @@
 #include "thread-utils.h"
 
 #ifdef _WIN32
+#ifndef WIN32_LEAN_AND_MEAN
 #	define WIN32_LEAN_AND_MEAN
+#endif
 #	include <windows.h>
 #elif defined(hpux) || defined(__hpux) || defined(_hpux)
 #	include <sys/pstat.h>