--- mingw-w64-tools/genidl/src/genidl_cfg.h | 2 ++ mingw-w64-tools/genidl/src/genidl_typinfo.c | 3 +++ mingw-w64-tools/widl/include/pathtools.h | 3 +-- mingw-w64-tools/widl/src/pathtools.c | 3 +-- 4 files changed, 7 insertions(+), 4 deletions(-) --- a/mingw-w64-tools/genidl/src/genidl_cfg.h +++ b/mingw-w64-tools/genidl/src/genidl_cfg.h @@ -26,7 +26,9 @@ #include #include #include +#if defined(HAVE_MALLOC_H) #include +#endif #include #include #include --- a/mingw-w64-tools/genidl/src/genidl_typinfo.c +++ b/mingw-w64-tools/genidl/src/genidl_typinfo.c @@ -21,7 +21,10 @@ #include "genidl_cfg.h" #include "genidl_typeinfo.h" #include "genidl_typinfo.h" +#if defined(HAVE_MALLOC_H) #include +#endif +#include #include #include --- a/mingw-w64-tools/widl/include/pathtools.h +++ b/mingw-w64-tools/widl/include/pathtools.h @@ -12,9 +12,8 @@ #define PATHTOOLS_H #include -#if defined(__APPLE__) #include -#else +#if defined(HAVE_MALLOC_H) #include #endif #include --- a/mingw-w64-tools/widl/src/pathtools.c +++ b/mingw-w64-tools/widl/src/pathtools.c @@ -8,9 +8,8 @@ .email: . */ -#if defined(__APPLE__) #include -#else +#if defined(HAVE_MALLOC_H) #include #endif #include