widl: Remove an unnecessary platform specific ifdef These files don't seem to need anything from malloc.h; they include alloca.h for that function anyway, and stdlib.h provides malloc and free. (Build tested for linux and mingw.) This fixes building on other BSDs. Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-tools/widl/include/pathtools.h b/mingw-w64-tools/widl/include/pathtools.h index 139b7c2..34777bf 100644 --- a/mingw-w64-tools/widl/include/pathtools.h +++ b/mingw-w64-tools/widl/include/pathtools.h
@@ -12,11 +12,7 @@ #define PATHTOOLS_H #include <unistd.h> -#if defined(__APPLE__) #include <stdlib.h> -#else -#include <malloc.h> -#endif #include <stdio.h> char * malloc_copy_string(char const * original);
diff --git a/mingw-w64-tools/widl/src/pathtools.c b/mingw-w64-tools/widl/src/pathtools.c index d85a7a2..d3c5d07 100644 --- a/mingw-w64-tools/widl/src/pathtools.c +++ b/mingw-w64-tools/widl/src/pathtools.c
@@ -8,11 +8,7 @@ .email: <mingw.android@gmail.com>. */ -#if defined(__APPLE__) #include <stdlib.h> -#else -#include <malloc.h> -#endif #include <limits.h> #include <stdio.h> #include <string.h>