summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-features.h.in
blob: 87eab582a87e8ff064bac2c46cec4fa9df5d556d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#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.
 */
#ifndef GDK_PIXBUF_VAR
#  ifdef G_PLATFORM_WIN32
#    ifdef GDK_PIXBUF_STATIC_COMPILATION
#      define GDK_PIXBUF_VAR extern
#    else /* !GDK_PIXBUF_STATIC_COMPILATION */
#      ifdef GDK_PIXBUF_COMPILATION
#        ifdef DLL_EXPORT
#          define GDK_PIXBUF_VAR __declspec(dllexport)
#        else /* !DLL_EXPORT */
#          define GDK_PIXBUF_VAR extern
#        endif /* !DLL_EXPORT */
#      else /* !GDK_PIXBUF_COMPILATION */
#        define GDK_PIXBUF_VAR extern __declspec(dllimport)
#      endif /* !GDK_PIXBUF_COMPILATION */
#    endif /* !GDK_PIXBUF_STATIC_COMPILATION */
#  else /* !G_PLATFORM_WIN32 */
#    ifndef GDK_PIXBUF_COMPILATION
#      define GDK_PIXBUF_VAR extern
#    else
#      define GDK_PIXBUF_VAR
#    endif /* !GDK_PIXBUF_COMPILATION */
#  endif /* !G_PLATFORM_WIN32 */
#endif /* GDK_PIXBUF_VAR */

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