mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Undef libc functions before defining them, since they may also be macros.
2004-10-23 Matthias Clasen <mclasen@redhat.com> * glib/gnulib/g-gnulib.h: Undef libc functions before defining them, since they may also be macros. (#155177, Andrea Campi)
This commit is contained in:
committed by
Matthias Clasen
parent
6811b264e4
commit
fb8e4a91e3
@@ -29,6 +29,9 @@
|
||||
#define printf_fetchargs _g_gnulib_printf_fetchargs
|
||||
|
||||
/* Use GLib memory allocation */
|
||||
#undef malloc
|
||||
#undef realloc
|
||||
#undef free
|
||||
#define malloc g_malloc
|
||||
#define realloc g_realloc
|
||||
#define free g_free
|
||||
|
Reference in New Issue
Block a user