From 2a2d769d423ad79f606b995f9016dc59e72d9d8c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 16 Mar 2005 03:17:27 +0000 Subject: Make PLT-reduction work with gcc4, and don't include everything in 2005-03-15 Matthias Clasen 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. --- gdk/gdkrgb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdk/gdkrgb.c') diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index b312f9b7dd..e8c1e53602 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -36,12 +36,12 @@ #define ENABLE_GRAYSCALE -#include "gdkalias.h" #include "gdkprivate.h" #include "gdkinternals.h" /* _gdk_windowing_get_bits_for_depth() */ #include "gdkrgb.h" #include "gdkscreen.h" +#include "gdkalias.h" #include typedef struct _GdkRgbInfo GdkRgbInfo; @@ -3695,3 +3695,6 @@ gdk_rgb_get_visual (void) { return gdk_screen_get_rgb_visual (gdk_screen_get_default ()); } + +#define __GDK_RGB_C__ +#include "gdkaliasdef.c" -- cgit v1.2.1