1 /* This file is part of libsigc++. */
2 #ifndef SIGCXXCONFIG_H_INCLUDED
3 #define SIGCXXCONFIG_H_INCLUDED
5 /* Define to omit deprecated API from the library. */
6 /* #undef SIGCXX_DISABLE_DEPRECATED */
8 /* Major version number of sigc++. */
9 #define SIGCXX_MAJOR_VERSION 2
11 /* Minor version number of sigc++. */
12 #define SIGCXX_MINOR_VERSION 10
14 /* Micro version number of sigc++. */
15 #define SIGCXX_MICRO_VERSION 8
17 /* Detect Win32 platform */
19 # if defined(_MSC_VER)
23 # elif defined(__CYGWIN__)
24 # define SIGC_CONFIGURE 1
25 # elif defined(__MINGW32__)
27 # define SIGC_CONFIGURE 1
29 # error "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
32 # define SIGC_CONFIGURE 1
37 * MS VC7 Warning 4251 says that the classes to any member objects in an
38 * exported class must also be exported. Some of the libsigc++
39 * template classes contain std::list members. MS KB article 168958 says
40 * that it's not possible to export a std::list instantiation due to some
41 * wacky class nesting issues, so our only options are to ignore the
42 * warning or to modify libsigc++ to remove the std::list dependency.
43 * AFAICT, the std::list members are used internally by the library code
44 * and don't need to be used from the outside, and ignoring the warning
45 * seems to have no adverse effects, so that seems like a good enough
48 # pragma warning(disable:4251)
50 # define SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD 1
51 # define SIGC_NEW_DELETE_IN_LIBRARY_ONLY 1 /* To keep ABI compatibility */
52 # define SIGC_PRAGMA_PUSH_POP_MACRO 1
54 #if (_MSC_VER < 1900) && !defined (noexcept)
55 #define _ALLOW_KEYWORD_MACROS 1
56 #define noexcept _NOEXCEPT
61 /* does the C++ compiler support the use of a particular specialization when
62 calling operator() template methods. */
63 #define SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
65 /* Define if the non-standard Sun reverse_iterator must be used. */
66 /* #undef SIGC_HAVE_SUN_REVERSE_ITERATOR */
68 /* does the C++ compiler support the use of a particular specialization when
69 calling operator() template methods omitting the template keyword. */
70 #define SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
72 /* does the C++ preprocessor support pragma push_macro() and pop_macro(). */
73 #define SIGC_PRAGMA_PUSH_POP_MACRO
75 #endif /* !SIGC_MSC */
78 # if defined(SIGC_BUILD) && defined(_WINDLL)
79 # define SIGC_API __declspec(dllexport)
80 # elif !defined(SIGC_BUILD)
81 # define SIGC_API __declspec(dllimport)
87 #endif /* !SIGC_DLL */
89 #endif /* !SIGCXXCONFIG_H_INCLUDED */