summaryrefslogtreecommitdiff
path: root/gio/giommconfig.h.meson
blob: 412323238b7dd68744ad21d226afe902874e48a9 (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
#ifndef _GIOMM_CONFIG_H
#define _GIOMM_CONFIG_H

#include <glibmmconfig.h>

/* Define to omit deprecated API from the library. */
#mesondefine GIOMM_DISABLE_DEPRECATED

/* Major version number of giomm. */
#mesondefine GIOMM_MAJOR_VERSION

/* Minor version number of giomm. */
#mesondefine GIOMM_MINOR_VERSION

/* Micro version number of giomm. */
#mesondefine GIOMM_MICRO_VERSION

/* Define if giomm is built as a static library */
#mesondefine GIOMM_STATIC_LIB

// Enable DLL-specific stuff only when not building a static library
#if !defined(__CYGWIN__) && (defined(__MINGW32__) || defined(_MSC_VER)) && !defined(GIOMM_STATIC_LIB)
# define GIOMM_DLL 1
#endif

#ifdef GIOMM_DLL
# if defined(GIOMM_BUILD)
#  define GIOMM_API __declspec(dllexport)
# elif !defined (__GNUC__)
#  define GIOMM_API __declspec(dllimport)
# else /* don't dllimport classes/methods on GCC/MinGW */
#  define GIOMM_API
# endif
/* Build a static library or non-native-Windows library */
#else
# define GIOMM_API
#endif /* GIOMM_DLL */

#endif /* _GIOMM_CONFIG_H */