(malloc, realloc, free) [emacs]: Undefine before
redefining, to avoid compiler warnings.
This commit is contained in:
parent
e7c15bba65
commit
7689ef0b8a
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
|
||||
|
||||
* regex.c (malloc, realloc, free) [emacs]: Undefine before
|
||||
redefining, to avoid compiler warnings.
|
||||
|
||||
* w32proc.c: Include syssignal.h, to avoid compiler warnings.
|
||||
|
||||
* w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
|
||||
|
|
|
@ -124,8 +124,17 @@
|
|||
# include "charset.h"
|
||||
# include "category.h"
|
||||
|
||||
# ifdef malloc
|
||||
# undef malloc
|
||||
# endif
|
||||
# define malloc xmalloc
|
||||
# ifdef realloc
|
||||
# undef realloc
|
||||
# endif
|
||||
# define realloc xrealloc
|
||||
# ifdef free
|
||||
# undef free
|
||||
# endif
|
||||
# define free xfree
|
||||
|
||||
/* Converts the pointer to the char to BEG-based offset from the start. */
|
||||
|
|
Loading…
Add table
Reference in a new issue