aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2006-02-05 13:45:35 +0000
committerKen Raeburn2006-02-05 13:45:35 +0000
commit0cf366568ece81fa6c46fb2447e3b7f9fbb1d673 (patch)
tree64795649e9e92a24dca5ff55b09ade337f61d0bd /src
parent8508e990c1c0b9bd69bc1d8f7fa2a57753029156 (diff)
downloademacs-0cf366568ece81fa6c46fb2447e3b7f9fbb1d673.tar.gz
emacs-0cf366568ece81fa6c46fb2447e3b7f9fbb1d673.zip
(malloc, realloc, free) [emacs]: Undefine macros before defining.
Diffstat (limited to 'src')
-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 4f411f95444..166222ae33c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,6 +5,9 @@
5 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]: 5 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
6 Cast bitfield value to EMACS_INT, to suppress gcc warning. 6 Cast bitfield value to EMACS_INT, to suppress gcc warning.
7 7
8 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
9 defining.
10
82006-02-03 Kim F. Storm <storm@cua.dk> 112006-02-03 Kim F. Storm <storm@cua.dk>
9 12
10 * xdisp.c: Cache last merged escape glyph face. 13 * xdisp.c: Cache last merged escape glyph face.
diff --git a/src/xrdb.c b/src/xrdb.c
index 822fb6e2624..0a138687d7b 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -88,6 +88,10 @@ extern char *get_system_name ();
88/* Make sure not to #include anything after these definitions. Let's 88/* Make sure not to #include anything after these definitions. Let's
89 not step on anyone's prototypes. */ 89 not step on anyone's prototypes. */
90#ifdef emacs 90#ifdef emacs
91/* darwin.h may have already defined these. */
92#undef malloc
93#undef realloc
94#undef free
91#define malloc xmalloc 95#define malloc xmalloc
92#define realloc xrealloc 96#define realloc xrealloc
93#define free xfree 97#define free xfree