summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-animation.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
commitd52fecba0bd3fb05e6254e82493a7f1e8626eb3f (patch)
tree56508262d23ee9515623f524c5d74a00110e5d30 /gdk-pixbuf/gdk-pixbuf-animation.h
parent32e5672e788c46394639f208475351c0884824a2 (diff)
downloadgdk-pixbuf-d52fecba0bd3fb05e6254e82493a7f1e8626eb3f.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-animation.h')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-animation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.h b/gdk-pixbuf/gdk-pixbuf-animation.h
index 145b24dcd..32757ee76 100644
--- a/gdk-pixbuf/gdk-pixbuf-animation.h
+++ b/gdk-pixbuf/gdk-pixbuf-animation.h
@@ -24,10 +24,13 @@
* 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_ANIMATION_H
#define GDK_PIXBUF_ANIMATION_H
-#include <glib.h>
#include <glib-object.h>
#include <gdk-pixbuf/gdk-pixbuf-core.h>