Apply automation fix patch from torbenh.
[ardour.git] / libs / sigc++2 / sigc++config.h.in
1
2 #ifndef _SIGCXX_CONFIG_H
3 #define _SIGCXX_CONFIG_H
4
5 // Detect common platforms
6 #if defined(_WIN32)
7   // Win32 compilers have a lot of variation
8   #if defined(_MSC_VER)
9     #define SIGC_MSC
10     #define SIGC_WIN32
11     #define SIGC_DLL
12   #elif defined(__CYGWIN__)
13     #define SIGC_CONFIGURE
14   #elif defined(__MINGW32__)
15     #define SIGC_WIN32
16     #define SIGC_CONFIGURE
17   #else
18     //The Tru64 compiler complains about this "unrecognized preprocessing directive", but it should never get this far anyway.
19     //#warning "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
20   #endif
21 #else
22   #define SIGC_CONFIGURE
23 #endif /* _WIN32 */
24
25 #ifdef SIGC_CONFIGURE
26   // configure checks
27   #undef SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
28   #undef SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
29   #undef SIGC_SELF_REFERENCE_IN_MEMBER_INITIALIZATION
30
31   #undef SIGC_HAVE_NAMESPACE_STD
32   #undef SIGC_HAVE_SUN_REVERSE_ITERATOR
33   #undef SIGC_TYPEDEF_REDEFINE_ALLOWED
34
35   // platform specific macros
36   // #define LIBSIGC_DISABLE_DEPRECATED
37   // #define SIGC_NEW_DELETE_IN_LIBRARY_ONLY 
38 #endif /* SIGC_CONFIGURE */
39
40 #ifdef SIGC_MSC
41
42   // MS VC7 Warning 4251 says that the classes to any member objects in an
43   // exported class must be also be exported.  Some of the libsigc++
44   // template classes contain std::list members.  MS KB article 168958 says
45   // that it's not possible to export a std::list instantiation due to some
46   // wacky class nesting issues, so our only options are to ignore the
47   // warning or to modify libsigc++ to remove the std::list dependency.
48   // AFAICT, the std::list members are used internally by the library code
49   // and don't need to be used from the outside, and ignoring the warning
50   // seems to have no adverse effects, so that seems like a good enough
51   // solution for now.
52   //
53   #pragma warning(disable:4251)
54
55   #define SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD
56   #define SIGC_NEW_DELETE_IN_LIBRARY_ONLY // To keep ABI compatibility
57   #define SIGC_HAVE_NAMESPACE_STD 1
58
59 #endif /* SIGC_MSC */
60
61 //Put things in the std namespace, if they should be there.
62 #ifndef SIGC_HAVE_NAMESPACE_STD
63   # define SIGC_USING_STD(Symbol) namespace std { using ::Symbol; }
64 #else
65   #  define SIGC_USING_STD(Symbol) /* empty */
66 #endif
67
68 #ifdef SIGC_DLL
69   #if defined(SIGC_BUILD) && defined(_WINDLL)
70     #define SIGC_API __declspec(dllexport) 
71   #elif !defined(SIGC_BUILD)
72     #define SIGC_API __declspec(dllimport)
73   #else
74     #define SIGC_API
75   #endif /* SIGC_BUILD - _WINDLL */
76 #else
77   #define SIGC_API
78 #endif /* SIGC_DLL */
79
80 #endif /* _SIGCXX_CONFIG_H */