Make PLT-reduction work with gcc4, and don't include everything in
2005-03-15 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gdk/gdk.symbols: Group symbols by header and source file. * gdk/makegdkalias.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 makegdkalias.pl -def * gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this file. * gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other headers, include gdkaliasdef.c at the bottom.
This commit is contained in:
committed by
Matthias Clasen
parent
34bfd71279
commit
2a2d769d42
@ -47,7 +47,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "gdkalias.h"
|
||||
#include "gdk.h" /* For gdk_error_trap_* / gdk_flush_* */
|
||||
#include "gdkx.h"
|
||||
#include "gdkimage.h"
|
||||
@ -55,6 +54,7 @@
|
||||
#include "gdkprivate-x11.h"
|
||||
#include "gdkdisplay-x11.h"
|
||||
#include "gdkscreen-x11.h"
|
||||
#include "gdkalias.h"
|
||||
|
||||
typedef struct _GdkImagePrivateX11 GdkImagePrivateX11;
|
||||
|
||||
@ -840,3 +840,6 @@ _gdk_windowing_get_bits_for_depth (GdkDisplay *display,
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
#define __GDK_IMAGE_X11_C__
|
||||
#include "gdkaliasdef.c"
|
||||
|
||||
Reference in New Issue
Block a user