aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn <[email protected]>2006-02-05 13:45:35 +0000
committerKen Raeburn <[email protected]>2006-02-05 13:45:35 +0000
commit0cf366568ece81fa6c46fb2447e3b7f9fbb1d673 (patch)
tree64795649e9e92a24dca5ff55b09ade337f61d0bd
parent8508e990c1c0b9bd69bc1d8f7fa2a57753029156 (diff)
(malloc, realloc, free) [emacs]: Undefine macros before defining.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xrdb.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4f411f9544..166222ae33 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,6 +5,9 @@
* lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
Cast bitfield value to EMACS_INT, to suppress gcc warning.
+ * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
+ defining.
+
2006-02-03 Kim F. Storm <[email protected]>
* xdisp.c: Cache last merged escape glyph face.
diff --git a/src/xrdb.c b/src/xrdb.c
index 822fb6e262..0a138687d7 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -88,6 +88,10 @@ extern char *get_system_name ();
/* 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