From 83b215f9eaa4ae3d0a53141549042a2a0f2dea69 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 28 May 2008 13:39:52 +0000 Subject: define GDK_PIXBUF_H_INSIDE around including all other headers. 2008-05-28 Michael Natterer * gdk-pixbuf.h: define GDK_PIXBUF_H_INSIDE around including all other headers. * gdk-pixbuf-animation.h * gdk-pixbuf-core.h * gdk-pixbuf-enum-types.h.template * gdk-pixbuf-features.h.in * gdk-pixbuf-io.h * gdk-pixbuf-loader.h * gdk-pixbuf-simple-anim.h * gdk-pixbuf-transform.h: add single-include guards that #error out if GDK_PIXBUF_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gdk-pixbuf-private.h: don't incude "gdk-pixbuf-io.h". * gdk-pixbuf-csource.c: #define __GTK_H_INSIDE__ around including "../gtk/gtkversion.h". Ugly but needed in this special case. svn path=/trunk/; revision=20214 --- gdk-pixbuf/gdk-pixbuf-transform.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdk-pixbuf/gdk-pixbuf-transform.h') diff --git a/gdk-pixbuf/gdk-pixbuf-transform.h b/gdk-pixbuf/gdk-pixbuf-transform.h index 6a1bb1e523..4965acf203 100644 --- a/gdk-pixbuf/gdk-pixbuf-transform.h +++ b/gdk-pixbuf/gdk-pixbuf-transform.h @@ -23,6 +23,10 @@ * Boston, MA 02111-1307, USA. */ +#if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION) +#error "Only can be included directly." +#endif + #ifndef GDK_PIXBUF_TRANSFORM_H #define GDK_PIXBUF_TRANSFORM_H -- cgit v1.2.1