mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
Make PLT-reduction work with gcc4, and don't include everything in
2005-03-13 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in galias.h: * glib/glib.symbols: Group symbols by header and source file. * glib/makegalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * glib/Makefile.am (galiasdef.c): Add a rule to generate this file. * glib/*.c: Include galias.h after the other GLib headers, include galiasdef.c at the bottom.
This commit is contained in:
committed by
Matthias Clasen
parent
96913f7a50
commit
608a31b98e
@@ -21,7 +21,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#define G_STDIO_NO_WRAP_ON_UNIX
|
||||
#include "galias.h"
|
||||
|
||||
#include "glib.h"
|
||||
|
||||
@@ -42,6 +41,8 @@
|
||||
|
||||
#include "gstdio.h"
|
||||
|
||||
#include "galias.h"
|
||||
|
||||
#if !defined (G_OS_UNIX) && !defined (G_OS_WIN32)
|
||||
#error Please port this to your operating system
|
||||
#endif
|
||||
@@ -730,3 +731,6 @@ g_freopen (const gchar *filename,
|
||||
return freopen (filename, mode, stream);
|
||||
#endif
|
||||
}
|
||||
|
||||
#define __G_STDIO_C__
|
||||
#include "galiasdef.c"
|
||||
|
Reference in New Issue
Block a user