]> git.lyx.org Git - lyx.git/blob - sigc++/acconfig.h
Geof Piroux's patch for Mathematica support
[lyx.git] / sigc++ / acconfig.h
1 #ifndef _SIGC_CONFIG_H_
2 #define _SIGC_CONFIG_H_
3
4 #if 0
5 @TOP@
6 @BOTTOM@
7 #undef PACKAGE
8 #endif /* 0 */
9
10 #undef SIGC_MAJOR_VERSION
11 #undef SIGC_MINOR_VERSION
12 #undef SIGC_MICRO_VERSION
13
14 // detect common platforms
15 #if defined(_WIN32)
16 // Win32 compilers have a lot of varation
17 #if defined(__BORLANDC__)
18 #define LIBSIGC_BC
19 #define LIBSIGC_WIN32
20 #elif defined(_MSC_VER)
21 #define LIBSIGC_MSC
22 #define LIBSIGC_WIN32
23 #elif defined(__CYGWIN__)
24 #define LIBSIGC_UNIX
25 #else
26 #error "Unknown architecture (send me gcc --dumpspecs)"
27 #endif
28 #else
29 #define LIBSIGC_UNIX
30 #endif /* _WIN32 */
31
32
33 #ifdef LIBSIGC_UNIX
34 #undef SIGC_CXX_NAMESPACES
35 #undef SIGC_CXX_PARTIAL_SPEC
36 #undef SIGC_CXX_MEMBER_FUNC_TEMPLATES
37 #undef SIGC_CXX_MEMBER_CLASS_TEMPLATES
38 #undef SIGC_CXX_MUTABLE
39 #undef SIGC_CXX_FRIEND_TEMPLATES
40 #undef SIGC_CXX_TEMPLATE_CCTOR
41 #undef SIGC_CXX_INT_CTOR
42 #undef SIGC_CXX_VOID_RETURN
43 #undef SIGC_CXX_SPECIALIZE_REFERENCES
44 #undef SIGC_PTHREADS
45 #undef SIGC_PTHREAD_DCE
46 #ifdef SIGC_PTHREADS
47 #undef SIGC_PTHREAD_COND_ATTR
48 #undef SIGC_PTHREAD_COND_IMPL
49 #undef SIGC_PTHREAD_MUTEX_ATTR
50 #undef SIGC_PTHREAD_MUTEX_IMPL
51 #undef SIGC_PTHREAD_THREAD_ATTR
52 #undef SIGC_PTHREAD_THREAD_IMPL
53 #undef SIGC_PTHREAD_KEY_IMPL
54 #endif /* SIGC_PTHREADS */
55 #endif /* LIBSIGC_UNIX */
56
57 #ifdef LIBSIGC_BC
58 #define SIGC_CXX_NAMESPACES 1
59 #define SIGC_CXX_PARTIAL_SPEC 1
60 #define SIGC_CXX_MEMBER_FUNC_TEMPLATES 1
61 #define SIGC_CXX_MEMBER_CLASS_TEMPLATES 1
62 #define SIGC_CXX_MUTABLE 1
63 #define SIGC_CXX_FRIEND_TEMPLATES 1
64 #define SIGC_CXX_INT_CTOR 1
65 #define SIGC_CXX_VOID_RETURN 1
66 #define SIGC_CXX_SPECIALIZE_REFERENCES 1
67 #endif /* LIBSIGC_BC */
68
69 #ifdef LIBSIGC_MSC
70 #define SIGC_CXX_NAMESPACES 1
71 #define SIGC_CXX_MEMBER_FUNC_TEMPLATES 1
72 #define SIGC_CXX_MEMBER_CLASS_TEMPLATES 1
73 #define SIGC_CXX_MUTABLE 1
74 #define SIGC_CXX_TEMPLATE_CCTOR 1
75 #define SIGC_CXX_INT_CTOR 1
76 #endif /* LIBSIGC_MSC */
77
78 #ifdef LIBSIGC_WIN32
79 #ifdef LIBSIGC_EXPORTS
80 #define LIBSIGC_API __declspec(dllexport)
81 #define LIBSIGC_TMPL 
82 #else
83 #define LIBSIGC_API __declspec(dllimport)
84 #define LIBSIGC_TMPL extern 
85 #endif /* LIBSIGC_EXPORTS */
86 #else
87 #define LIBSIGC_API
88 #endif /* LIBSIGC_WIN32 */
89
90
91 #endif /* _SIGC_CONFIG_H_ */