diff options
author | Michael Natterer <mitch@imendio.com> | 2008-05-28 14:01:57 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2008-05-28 14:01:57 +0000 |
commit | 791ac426d7cdeaee2f0bd201f1d3bfb2a2c0a71b (patch) | |
tree | 8aac150aa23d65e89aea420af883e298879d59f2 /gdk/gdkpixbuf.h | |
parent | 382ce2f13825c6b51b8b62db56a5e8ab9abee286 (diff) | |
download | gtk+-791ac426d7cdeaee2f0bd201f1d3bfb2a2c0a71b.tar.gz |
define __GDK_H_INSIDE__ around including all other headers.
2008-05-28 Michael Natterer <mitch@imendio.com>
* gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
headers.
* gdk/gdkenumtypes.h.template
* gdk/gdk*.h: add single-include guards that #error out if
GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
included individually. Also removed some redundant includes and
did some tiny trailing whitespace removal that's not worth to
commit separately.
* gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
files.
* gdk/win32/gdkwin32.h
* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
other includes.
svn path=/trunk/; revision=20217
Diffstat (limited to 'gdk/gdkpixbuf.h')
-rw-r--r-- | gdk/gdkpixbuf.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk/gdkpixbuf.h b/gdk/gdkpixbuf.h index 7ec7164451..e6cd09a36e 100644 --- a/gdk/gdkpixbuf.h +++ b/gdk/gdkpixbuf.h @@ -21,9 +21,13 @@ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ +#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION) +#error "Only <gdk/gdk.h> can be included directly." +#endif + #ifndef __GDK_PIXBUF_H__ #define __GDK_PIXBUF_H__ |