summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipng/dvipng-1.13-PATCHES/patch-20-rpl_malloc
blob: 3f3e2b9cb5ba41fd99264fa359c2df4a6d57ff11 (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
	Autoconf may define malloc to rpl_malloc.

	Undefine this before including any system headers to avoid
	implicit declaration of malloc(), e.g., for MinGW32.

diff -ur dvipng-1.13.orig/dvipng.h dvipng-1.13/dvipng.h
--- dvipng-1.13.orig/dvipng.h	2010-03-17 22:41:51.000000000 +0100
+++ dvipng-1.13/dvipng.h	2010-03-18 12:22:28.897998191 +0100
@@ -26,6 +26,13 @@
 #define DVIPNG_H
 #include "config.h"
 
+/* Autoconf may define malloc to rpl_malloc, if the system does not
+ * have a GNU Libc-compatible malloc (for which malloc(0) gives a
+ * valid pointer). We don't need that (yet) */
+#ifdef malloc
+# undef malloc
+#endif
+
 #define  STRSIZE         255     /* stringsize for file specifications  */
 
 #define  FIRSTFNTCHAR  0
@@ -105,13 +112,6 @@
 # endif
 #endif
 
-/* Autoconf may define malloc to rpl_malloc, if the system does not
- * have a GNU Libc-compatible malloc (for which malloc(0) gives a
- * valid pointer). We don't need that (yet) */
-#ifdef malloc
-# undef malloc
-#endif
-
 
 /*************************************************************/
 /*************************  protos.h  ************************/