[HHPCOMP] Apply changes proposed by learn_more which supposedly fix the GCCWin build
authorBenedikt Freisen <b.freisen@gmx.net>
Tue, 11 Aug 2015 21:06:37 +0000 (21:06 +0000)
committerBenedikt Freisen <b.freisen@gmx.net>
Tue, 11 Aug 2015 21:06:37 +0000 (21:06 +0000)
svn path=/trunk/; revision=68696

reactos/tools/hhpcomp/chmc/chmc.c
reactos/tools/hhpcomp/utils.cpp

index 75d8f4e..652031c 100644 (file)
@@ -30,7 +30,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifndef __GNUC__
+#if !defined(__GNUC__) || defined(__MINGW32__)
 typedef int (*__compar_fn_t)(const void *, const void *);
 #endif
 
index 184742c..c2c8dae 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdexcept>
 
 #if defined(_WIN32)
+    #define WIN32_LEAN_AND_MEAN
     #include <windows.h>  // for GetFullPathNameA 
 #else
     #include <unistd.h>