diff --git a/reactos/tools/hhpcomp/chmc/chmc.c b/reactos/tools/hhpcomp/chmc/chmc.c index 75d8f4ed058..652031c477b 100644 --- a/reactos/tools/hhpcomp/chmc/chmc.c +++ b/reactos/tools/hhpcomp/chmc/chmc.c @@ -30,7 +30,7 @@ #include #include #include -#ifndef __GNUC__ +#if !defined(__GNUC__) || defined(__MINGW32__) typedef int (*__compar_fn_t)(const void *, const void *); #endif diff --git a/reactos/tools/hhpcomp/utils.cpp b/reactos/tools/hhpcomp/utils.cpp index 184742c073a..c2c8dae8d17 100644 --- a/reactos/tools/hhpcomp/utils.cpp +++ b/reactos/tools/hhpcomp/utils.cpp @@ -22,6 +22,7 @@ #include #if defined(_WIN32) + #define WIN32_LEAN_AND_MEAN #include // for GetFullPathNameA #else #include