Fixed mingw gcc 4.8.1 complains about double defined macros.
[platform/upstream/dbus.git] / cmake / config.h.cmake
1 /* config.h. Generated by cmake from config.h.cmake */
2
3 #ifndef _DBUS_CONFIG_H
4 #define _DBUS_CONFIG_H
5 /****************************/
6 /* indicate that we are building with cmake */
7 #define DBUS_CMAKE 1
8
9 #cmakedefine HAVE_GNUC_VARARGS 1
10
11 #cmakedefine DBUS_CONSOLE_AUTH_DIR "@DBUS_CONSOLE_AUTH_DIR@"
12 #cmakedefine DBUS_DATADIR  "@DBUS_DATADIR@"
13 #cmakedefine DBUS_BINDIR   "@DBUS_BINDIR@"
14 #cmakedefine DBUS_SYSTEM_CONFIG_FILE  "@DBUS_SYSTEM_CONFIG_FILE@"
15 #cmakedefine DBUS_SESSION_CONFIG_FILE "@DBUS_SESSION_CONFIG_FILE@"
16 #cmakedefine DBUS_DAEMON_NAME "@DBUS_DAEMON_NAME@"
17 #cmakedefine DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@"
18 #cmakedefine DBUS_SESSION_BUS_CONNECT_ADDRESS  "@DBUS_SESSION_BUS_CONNECT_ADDRESS@"
19 #cmakedefine DBUS_MACHINE_UUID_FILE "@DBUS_MACHINE_UUID_FILE@"
20 #cmakedefine DBUS_DAEMONDIR "@DBUS_DAEMONDIR@"
21 #cmakedefine PACKAGE "@PACKAGE@"
22
23 #cmakedefine DBUS_ENABLE_STATS
24
25 #define TEST_LISTEN       "@TEST_LISTEN@"
26
27 // test binaries
28 #define DBUS_TEST_EXEC "@DBUS_TEST_EXEC@"
29 #define DBUS_EXEEXT "@EXEEXT@"
30
31 /* Full path to test file test/test-exit in builddir */
32 #define TEST_BUS_BINARY          "@TEST_BUS_BINARY@"
33
34 /* Some dbus features */
35 #cmakedefine DBUS_ENABLE_ANSI 1
36 #cmakedefine DBUS_ENABLE_VERBOSE_MODE 1
37 #cmakedefine DBUS_DISABLE_ASSERT 1
38 #ifndef DBUS_DISABLE_ASSERT
39 #  define DBUS_ENABLE_ASSERT 1
40 #endif
41 #cmakedefine DBUS_DISABLE_CHECKS 1
42 #ifndef DBUS_DISABLE_CHECKS
43 #  define DBUS_ENABLE_CHECKS 1
44 #endif
45 /* xmldocs */
46 /* doxygen */
47 #cmakedefine DBUS_GCOV_ENABLED 1
48
49 /* abstract-sockets */
50
51 #cmakedefine HAVE_ABSTRACT_SOCKETS 1
52
53 #cmakedefine DBUS_PATH_OR_ABSTRACT_VALUE 1
54
55 #if (defined DBUS_PATH_OR_ABSTRACT_VALUE)
56 #define DBUS_PATH_OR_ABSTRACT @DBUS_PATH_OR_ABSTRACT_VALUE@
57 #endif
58
59 #ifdef DBUS_PATH_OR_ABSTRACT_VALUE
60 #undef DBUS_PATH_OR_ABSTRACT_VALUE
61 #endif
62
63 /* selinux */
64 /* kqueue */
65 #cmakedefine HAVE_CONSOLE_OWNER_FILE 1
66 #define DBUS_CONSOLE_OWNER_FILE "@DBUS_CONSOLE_OWNER_FILE@"
67
68 #cmakedefine DBUS_HAVE_ATOMIC_INT 1
69 #cmakedefine DBUS_USE_ATOMIC_INT_486 1
70 #if (defined(__i386__) || defined(__x86_64__))
71 # define DBUS_HAVE_ATOMIC_INT 1
72 # define DBUS_USE_ATOMIC_INT_486 1
73 #endif
74
75 #cmakedefine DBUS_BUILD_X11 1
76 /* For the moment, the cmake build system doesn't have an equivalent of
77  * the autoconf build system's --disable-x11-autolaunch */
78 #ifdef DBUS_BUILD_X11
79 # define DBUS_ENABLE_X11_AUTOLAUNCH 1
80 #endif
81
82 #define DBUS_DEFAULT_MESSAGE_UNIX_FDS @DEFAULT_MESSAGE_UNIX_FDS@
83
84 #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; }
85
86 #cmakedefine DBUS_VA_COPY_FUNC
87 #if (defined DBUS_VA_COPY_FUNC)
88 # define DBUS_VA_COPY @DBUS_VA_COPY_FUNC@
89 #endif
90
91 #ifdef DBUS_VA_COPY_FUNC
92 #undef DBUS_VA_COPY_FUNC
93 #endif
94
95 #cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
96
97 // headers
98 /* Define to 1 if you have dirent.h */
99 #cmakedefine   HAVE_DIRENT_H 1
100
101 /* Define to 1 if you have io.h */
102 #cmakedefine   HAVE_IO_H 1
103
104 /* Define to 1 if you have grp.h */
105 #cmakedefine   HAVE_GRP_H 1
106
107 /* Define to 1 if you have sys/poll.h */
108 #cmakedefine    HAVE_POLL 1
109
110 /* Define to 1 if you have sys/time.h */
111 #cmakedefine    HAVE_SYS_TIME 1
112
113 /* Define to 1 if you have sys/wait.h */
114 #cmakedefine    HAVE_SYS_WAIT 1
115
116 /* Define to 1 if you have time.h */
117 #cmakedefine   HAVE_TIME_H 1
118
119 /* Define to 1 if you have ws2tcpip.h */
120 #cmakedefine   HAVE_WS2TCPIP_H
121
122 /* Define to 1 if you have wspiapi.h */
123 #cmakedefine   HAVE_WSPIAPI_H 1
124
125 /* Define to 1 if you have unistd.h */
126 #cmakedefine   HAVE_UNISTD_H 1
127
128 /* Define to 1 if you have stdio.h */
129 #cmakedefine   HAVE_STDIO_H 1
130
131 /* Define to 1 if you have sys/syslimits.h */
132 #cmakedefine   HAVE_SYS_SYSLIMITS_H 1
133
134 /* Define to 1 if you have errno.h */
135 #cmakedefine   HAVE_ERRNO_H 1
136
137 /* Define to 1 if you have signal.h */
138 #cmakedefine   HAVE_SIGNAL_H 1
139
140 /* Define to 1 if you have locale.h */
141 #cmakedefine   HAVE_LOCALE_H 1
142
143 /* Define to 1 if you have inttypes.h */
144 #cmakedefine   HAVE_INTTYPES_H 1
145
146 /* Define to 1 if you have stdint.h */
147 #cmakedefine   HAVE_STDINT_H 1
148
149 // symbols
150 /* Define to 1 if you have backtrace */
151 #cmakedefine   HAVE_BACKTRACE 1
152
153 /* Define to 1 if you have getgrouplist */
154 #cmakedefine   HAVE_GETGROUPLIST 1
155
156 /* Define to 1 if you have getpeerucred */
157 #cmakedefine   HAVE_GETPEERUCRED 1
158
159 /* Define to 1 if you have nanosleep */
160 #cmakedefine   HAVE_NANOSLEEP 1
161
162 /* Define to 1 if you have getpwnam_r */
163 #cmakedefine   HAVE_POSIX_GETPWNAM_R 1
164
165 /* Define to 1 if you have socketpair */
166 #cmakedefine   HAVE_SOCKETPAIR 1
167
168 /* Define to 1 if you have setenv */
169 #cmakedefine   HAVE_SETENV 1
170
171 /* Define to 1 if you have unsetenv */
172 #cmakedefine   HAVE_UNSETENV 1
173
174 /* Define to 1 if you have clearenv */
175 #cmakedefine   HAVE_CLEARENV 1
176
177 /* Define to 1 if you have writev */
178 #cmakedefine   HAVE_WRITEV 1
179
180 /* Define to 1 if you have socklen_t */
181 #cmakedefine   HAVE_SOCKLEN_T 1
182
183 /* Define to 1 if you have setlocale */
184 #cmakedefine   HAVE_SETLOCALE 1
185
186 /* Define to 1 if you have localeconv */
187 #cmakedefine   HAVE_LOCALECONV 1
188
189 /* Define to 1 if you have strtoll */
190 #cmakedefine   HAVE_STRTOLL 1
191
192 /* Define to 1 if you have strtoull */
193 #cmakedefine   HAVE_STRTOULL 1
194
195 // structs
196 /* Define to 1 if you have struct cmsgred */
197 #cmakedefine    HAVE_CMSGCRED 1
198
199 // system type defines
200 #if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
201 # define DBUS_WIN
202 # define DBUS_WIN_FIXME 1
203 # ifdef _WIN32_WCE
204 #  define DBUS_WINCE
205 # else
206 #  define DBUS_WIN32
207 # endif
208 #else
209 # define DBUS_UNIX
210 #endif 
211
212 #if defined(_WIN32) || defined(_WIN64)
213 // mingw mode_t
214 # ifdef HAVE_STDIO_H
215 #  include <stdio.h>
216 # endif
217 # ifndef _MSC_VER
218 #  define uid_t int
219 #  define gid_t int
220 # else
221 #  define snprintf _snprintf
222    typedef int mode_t;
223 #  if !defined(_WIN32_WCE)
224 #    define strtoll _strtoi64
225 #    define strtoull _strtoui64
226 #    define HAVE_STRTOLL 1
227 #    define HAVE_STRTOULL 1
228 #  endif
229 # endif
230 #endif  // defined(_WIN32) || defined(_WIN64)
231
232 #ifdef interface
233 #undef interface
234 #endif
235
236 #ifndef SIGHUP
237 #define SIGHUP  1
238 #endif
239
240 #cmakedefine DBUS_VERBOSE_C_S 1
241 #ifdef DBUS_VERBOSE_C_S
242 #define _dbus_verbose_C_S printf
243 #else
244 #define _dbus_verbose_C_S _dbus_verbose
245 #endif 
246
247 # if defined(_MSC_VER) && !defined(inline)
248 #define inline __inline
249 #endif
250
251 #endif  // _DBUS_CONFIG_H