changeset 68631:e51361e03895

(malloc, realloc, free) [emacs]: Undefine macros before defining.
author Ken Raeburn <raeburn@raeburn.org>
date Sun, 05 Feb 2006 13:45:09 +0000
parents 86c478cccc57
children 38d9a9de1e9c
files src/xrdb.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xrdb.c	Sun Feb 05 12:42:51 2006 +0000
+++ b/src/xrdb.c	Sun Feb 05 13:45:09 2006 +0000
@@ -88,6 +88,10 @@
 /* Make sure not to #include anything after these definitions.  Let's
    not step on anyone's prototypes.  */
 #ifdef emacs
+/* darwin.h may have already defined these.  */
+#undef malloc
+#undef realloc
+#undef free
 #define malloc xmalloc
 #define realloc xrealloc
 #define free xfree