summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-loader.h
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-05-28 13:39:52 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-05-28 13:39:52 +0000
commit83b215f9eaa4ae3d0a53141549042a2a0f2dea69 (patch)
tree7c33ce46f21e634fade1d0263df7c5d1a0bc9435 /gdk-pixbuf/gdk-pixbuf-loader.h
parent2650257f3b369eaf587d68c2dcc32f436f85bc80 (diff)
downloadgtk+-83b215f9eaa4ae3d0a53141549042a2a0f2dea69.tar.gz
define GDK_PIXBUF_H_INSIDE around including all other headers.
2008-05-28 Michael Natterer <mitch@imendio.com> * 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
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-loader.h')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-loader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.h b/gdk-pixbuf/gdk-pixbuf-loader.h
index d9b2b7dc03..5d1f17cd1c 100644
--- a/gdk-pixbuf/gdk-pixbuf-loader.h
+++ b/gdk-pixbuf/gdk-pixbuf-loader.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 <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
+#endif
+
#ifndef GDK_PIXBUF_LOADER_H
#define GDK_PIXBUF_LOADER_H