Commit c617fb16 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

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.
parent ff1e4d6a
2004-10-13 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>
* monoburg.c: Emit code to generate a file that does not need glib to
......
......@@ -285,6 +285,11 @@ emit_header ()
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 @@ emit_header ()
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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment