blob: f19e8ce5edb795210a45307e22e7e4984e5b3498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
---
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if defined(HAVE_MALLOC_H)
#include <malloc.h>
+#endif
#include <memory.h>
#include <stdarg.h>
#include <stdint.h>
--- 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 <malloc.h>
+#endif
+#include <stdlib.h>
#include <string.h>
#include <memory.h>
--- a/mingw-w64-tools/widl/include/pathtools.h
+++ b/mingw-w64-tools/widl/include/pathtools.h
@@ -12,9 +12,8 @@
#define PATHTOOLS_H
#include <unistd.h>
-#if defined(__APPLE__)
#include <stdlib.h>
-#else
+#if defined(HAVE_MALLOC_H)
#include <malloc.h>
#endif
#include <stdio.h>
--- a/mingw-w64-tools/widl/src/pathtools.c
+++ b/mingw-w64-tools/widl/src/pathtools.c
@@ -8,9 +8,8 @@
.email: <mingw.android@gmail.com>.
*/
-#if defined(__APPLE__)
#include <stdlib.h>
-#else
+#if defined(HAVE_MALLOC_H)
#include <malloc.h>
#endif
#include <limits.h>
|