
Index: ChangeLog from Benoit Perrot <benoit@lrde.epita.fr> * monoburg.c: Emit `stdio.h' and `stdlib.h' inclusions when `-g' is specified to kill warnings. 2004-10-13 Benoit Perrot <benoit@lrde.epita.fr> Index: monoburg.c --- monoburg.c (revision 2) +++ monoburg.c (revision 3) @@ -285,6 +285,11 @@ output ("#endif /* !gpointer */\n"); output ("\n"); + output ("#if !defined(g_new) || !defined(g_new0)\n"); + output ("# include <stdio.h>\n"); + output ("# include <stdlib.h>\n"); + output ("#endif /* !defined(g_new) || !defined(g_new0) */\n"); + output ("#ifndef g_new\n"); output ("static void *\n"); output ("mono_burg_xmalloc_ (size_t size)\n"); @@ -320,6 +325,7 @@ output ("\n"); output ("#if !defined(g_error) || !defined(g_warning)\n"); + output ("# include <stdio.h>\n"); output ("# include <stdarg.h>\n"); output ("#endif /* !defined(g_error) || !defined(g_warning) */\n");