(malloc, realloc, free) [emacs]: Undefine macros before defining.
This commit is contained in:
parent
8508e990c1
commit
0cf366568e
2 changed files with 7 additions and 0 deletions
|
|
@ -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 <storm@cua.dk>
|
||||
|
||||
* xdisp.c: Cache last merged escape glyph face.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue