mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
83b215f9ea
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
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
#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_FEATURES_H
|
|
#define GDK_PIXBUF_FEATURES_H 1
|
|
|
|
#define GDK_PIXBUF_MAJOR (@GDK_PIXBUF_MAJOR@)
|
|
#define GDK_PIXBUF_MINOR (@GDK_PIXBUF_MINOR@)
|
|
#define GDK_PIXBUF_MICRO (@GDK_PIXBUF_MICRO@)
|
|
#define GDK_PIXBUF_VERSION "@GDK_PIXBUF_VERSION@"
|
|
|
|
/* We prefix variable declarations so they can
|
|
* properly get exported/imported from Windows DLLs.
|
|
*/
|
|
#ifdef G_PLATFORM_WIN32
|
|
# ifdef GDK_PIXBUF_STATIC_COMPILATION
|
|
# define GDK_PIXBUF_VAR extern
|
|
# else /* !GDK_PIXBUF_STATIC_COMPILATION */
|
|
# ifdef GDK_PIXBUF_C_COMPILATION
|
|
# ifdef DLL_EXPORT
|
|
# define GDK_PIXBUF_VAR __declspec(dllexport)
|
|
# else /* !DLL_EXPORT */
|
|
# define GDK_PIXBUF_VAR extern
|
|
# endif /* !DLL_EXPORT */
|
|
# else /* !GDK_PIXBUF_C_COMPILATION */
|
|
# define GDK_PIXBUF_VAR extern __declspec(dllimport)
|
|
# endif /* !GDK_PIXBUF_C_COMPILATION */
|
|
# endif /* !GDK_PIXBUF_STATIC_COMPILATION */
|
|
#else /* !G_PLATFORM_WIN32 */
|
|
# define GDK_PIXBUF_VAR extern
|
|
#endif /* !G_PLATFORM_WIN32 */
|
|
|
|
GDK_PIXBUF_VAR const guint gdk_pixbuf_major_version;
|
|
GDK_PIXBUF_VAR const guint gdk_pixbuf_minor_version;
|
|
GDK_PIXBUF_VAR const guint gdk_pixbuf_micro_version;
|
|
GDK_PIXBUF_VAR const char *gdk_pixbuf_version;
|
|
|
|
#endif /* GDK_PIXBUF_FEATURES_H */
|