librsvg-features.h.in 1.64 KB
Newer Older
1 2 3 4
#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
#warning "Including <librsvg/librsvg-features.h> directly is deprecated."
#endif

5
#ifndef LIBRSVG_FEATURES_H
Evan Nemerson's avatar
Evan Nemerson committed
6
#define LIBRSVG_FEATURES_H
7 8 9 10

#define LIBRSVG_MAJOR_VERSION (@LIBRSVG_MAJOR_VERSION@)
#define LIBRSVG_MINOR_VERSION (@LIBRSVG_MINOR_VERSION@)
#define LIBRSVG_MICRO_VERSION (@LIBRSVG_MICRO_VERSION@)
11
#define LIBRSVG_VERSION "@PACKAGE_VERSION@"
12

13 14 15 16 17
#define LIBRSVG_CHECK_VERSION(major,minor,micro) \
  (LIBRSVG_MAJOR_VERSION > (major) || \
   (LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION > (minor)) || \
   (LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION == (minor) && LIBRSVG_MICRO_VERSION >= (micro)))

18
#ifndef __GI_SCANNER__
Christian Persch's avatar
Christian Persch committed
19
#define LIBRSVG_HAVE_SVGZ  (TRUE)
20
#define LIBRSVG_HAVE_CSS   (TRUE)
21 22

#define LIBRSVG_CHECK_FEATURE(FEATURE) (defined(LIBRSVG_HAVE_##FEATURE) && LIBRSVG_HAVE_##FEATURE)
23
#endif
24

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
/*
 * On Windows builds, we need to decorate variables that are exposed in the public API
 * so that they can be properly exported and linked to, for DLL builds
 */
#ifndef RSVG_VAR
# ifdef G_PLATFORM_WIN32
#  ifndef RSVG_STATIC
#   ifdef RSVG_COMPILATION
#    define RSVG_VAR extern __declspec (dllexport)
#   else /* RSVG_COMPILATION */
#    define RSVG_VAR extern __declspec (dllimport)
#   endif /* !RSVG_COMPILATION */
#  else /* !RSVG_STATIC */
#   define RSVG_VAR extern
#  endif /* RSVG_STATIC */
# else /* G_PLATFORM_WIN32 */
#  define RSVG_VAR extern
# endif /* !G_PLATFORM_WIN32 */
#endif

RSVG_VAR const guint librsvg_major_version;
RSVG_VAR const guint librsvg_minor_version;
RSVG_VAR const guint librsvg_micro_version;
RSVG_VAR const char librsvg_version[];
49 50

#endif