summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libdbus/config-windows.h
blob: 0bf9b046cdd0860c1b4f0ee64dcf51dff1b5f138 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
/* config.h. Generated by cmake from config.h.cmake */

#ifndef _DBUS_CONFIG_H
#define _DBUS_CONFIG_H

#define VERSION "1.15.9"

/* On Windows, we expect to be using msvcrt.dll-compatible printf
 * (%I64u instead of %llu) unless otherwise specified. This must be
 * done near the beginning of config.h, before we have included any
 * system headers that might check the value of this macro. */
#ifndef __USE_MINGW_ANSI_STDIO
#   define __USE_MINGW_ANSI_STDIO 0
#endif

/* #undef _FILE_OFFSET_BITS */
/* #undef _TIME_BITS */
/* #undef WORDS_BIGENDIAN */

/* Opt-in to modern APIs and thread-safety for Solaris. In the Autotools
 * build system we do the equivalent of this by appending to CFLAGS
 * in configure.ac */
#ifdef __sun
# define __EXTENSIONS__
# define _POSIX_PTHREAD_SEMANTICS
# define _REENTRANT
# define _XOPEN_SOURCE 500
#endif

#define DBUS_DATADIR  "C:/Program Files (x86)/dbus/share"
#define DBUS_BINDIR   "C:/Program Files (x86)/dbus/bin"
#define DBUS_PREFIX "C:/Program Files (x86)/dbus"
#define DBUS_SYSTEM_CONFIG_FILE  "share/dbus-1/system.conf"
#define DBUS_SESSION_CONFIG_FILE "share/dbus-1/session.conf"
/* #undef DBUS_SESSION_SOCKET_DIR */
#define DBUS_DAEMON_NAME "dbus-daemon"
#define DBUS_SYSTEM_BUS_DEFAULT_ADDRESS  "unix:path=C:/Program Files (x86)/dbus/var/run/dbus/system_bus_socket"
#define DBUS_SESSION_BUS_CONNECT_ADDRESS  "autolaunch:"
#define DBUS_MACHINE_UUID_FILE "C:/Program Files (x86)/dbus/var/lib/dbus/machine-id"
#define DBUS_DAEMONDIR "C:/Program Files (x86)/dbus/bin"
#define DBUS_RUNSTATEDIR "C:/Program Files (x86)/dbus/var/run"

/* #undef DBUS_ENABLE_STATS */
#define ENABLE_TRADITIONAL_ACTIVATION

#define TEST_LISTEN       ""

// test binaries
#define DBUS_EXEEXT ".exe"

/* Some dbus features */
/* #undef DBUS_ENABLE_ANSI */
#define DBUS_ENABLE_VERBOSE_MODE 1
/* #undef DBUS_DISABLE_ASSERT */
#ifndef DBUS_DISABLE_ASSERT
#  define DBUS_ENABLE_ASSERT 1
#endif
/* #undef DBUS_DISABLE_CHECKS */
#ifndef DBUS_DISABLE_CHECKS
#  define DBUS_ENABLE_CHECKS 1
#endif
/* #undef DBUS_ENABLE_EMBEDDED_TESTS */
/* #undef DBUS_ENABLE_MODULAR_TESTS */
/* #undef DBUS_USE_OUTPUT_DEBUG_STRING */

/* xmldocs */
/* doxygen */
/* #undef DBUS_GCOV_ENABLED */

/* selinux */
/* kqueue */
/* #undef HAVE_CONSOLE_OWNER_FILE */
#define DBUS_CONSOLE_OWNER_FILE ""

/* #undef DBUS_BUILD_X11 */
/* For the moment, the cmake build system doesn't have an equivalent of
 * the autoconf build system's --disable-x11-autolaunch */
#ifdef DBUS_BUILD_X11
# define DBUS_ENABLE_X11_AUTOLAUNCH 1
#endif

/* #undef DBUS_WITH_GLIB */
/* #undef GLIB_VERSION_MIN_REQUIRED */
/* #undef GLIB_VERSION_MAX_ALLOWED */

// headers
#define HAVE_AFUNIX_H 1
/* #undef HAVE_ALLOCA_H */
/* #undef HAVE_BYTESWAP_H */
/* #undef HAVE_CRT_EXTERNS_H */

/* Define to 1 if you have dirent.h */
/* #undef HAVE_DIRENT_H */

/* Define to 1 if you have errno.h */
#define   HAVE_ERRNO_H 1

/* Define to 1 if you have inttypes.h */
#define   HAVE_INTTYPES_H 1

/* Define to 1 if you have io.h */
#define   HAVE_IO_H 1

/* Define to 1 if you have locale.h */
#define   HAVE_LOCALE_H 1

/* Define to 1 if you have poll */
/* #undef HAVE_POLL */

/* Define to 1 if you have signal.h */
#define   HAVE_SIGNAL_H 1

/* Define to 1 if you have stdio.h */
#define   HAVE_STDIO_H 1

/* #undef HAVE_STDATOMIC_H */
/* #undef HAVE_SYSLOG_H */
/* #undef HAVE_SYS_EVENTS_H */
/* #undef HAVE_SYS_INOTIFY_H */
/* #undef HAVE_LINUX_MAGIC_H */
/* #undef HAVE_SYS_PRCTL_H */
/* #undef HAVE_SYS_RANDOM_H */
/* #undef HAVE_SYS_RESOURCE_H */
/* #undef HAVE_SYS_SYSCALL_H */
/* #undef HAVE_SYS_VFS_H */

/* Define to 1 if you have sys/time.h */
/* #undef HAVE_SYS_TIME_H */

/* Define to 1 if you have unistd.h */
/* #undef HAVE_UNISTD_H */

/* Define to 1 if you have ws2tcpip.h */
#define   HAVE_WS2TCPIP_H 1

// symbols
/* Define to 1 if you have backtrace */
/* #undef HAVE_BACKTRACE */

/* Define to 1 if you have getgrouplist */
/* #undef HAVE_GETGROUPLIST */

/* Define to 1 if you have getpeerucred */
/* #undef HAVE_GETPEERUCRED */

/* Define to 1 if you have nanosleep */
/* #undef HAVE_NANOSLEEP */

/* Define to 1 if you have getpwnam_r */
/* #undef HAVE_GETPWNAM_R */

/* Define to 1 if you have socketpair */
/* #undef HAVE_SOCKETPAIR */

/* Define to 1 if you have setenv */
/* #undef HAVE_SETENV */

/* Define to 1 if you have unsetenv */
/* #undef HAVE_UNSETENV */

/* Define to 1 if you have clearenv */
/* #undef HAVE_CLEARENV */

/* Define to 1 if you have closefrom */
/* #undef HAVE_CLOSEFROM */

/* Define to 1 if you have close_range */
/* #undef HAVE_CLOSE_RANGE */

/* Define to 1 if you have writev */
/* #undef HAVE_WRITEV */

/* Define to 1 if you have socklen_t */
/* #undef HAVE_SOCKLEN_T */

/* Define to 1 if you have setlocale */
#define   HAVE_SETLOCALE 1

/* Define to 1 if you have localeconv */
#define   HAVE_LOCALECONV 1

/* Define to 1 if you have pip2 */
/* #undef HAVE_PIPE2 */

/* #undef HAVE_ACCEPT4 */

/* #undef HAVE_FSTATFS */
/* #undef HAVE_INOTIFY_INIT1 */
/* #undef HAVE_GETRANDOM */
/* #undef HAVE_GETRLIMIT */
/* #undef HAVE_PRCTL */
/* #undef HAVE_PRLIMIT */
#define HAVE_RAISE 1
/* #undef HAVE_SETRLIMIT */
/* #undef HAVE_UNIX_FD_PASSING */
/* #undef HAVE_SYSTEMD */

/* Define to use epoll(4) on Linux */
/* #undef DBUS_HAVE_LINUX_EPOLL */

/* Use the gcc __sync extension */
#define DBUS_USE_SYNC 0

/* #undef HAVE_SETRESUID */
/* #undef HAVE_GETRESUID */
/* whether -export-dynamic was passed to libtool */
/* #undef DBUS_BUILT_R_DYNAMIC */

/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif

// structs
/* Define to 1 if you have struct cmsgred */
/* #undef HAVE_CMSGCRED */

#define FD_SETSIZE 8192

#define DBUS_USER "Administrator"
#define DBUS_TEST_USER "guest"
/* #undef DBUS_TEST_EXEC */
/* Where to put test sockets */
#define DBUS_TEST_SOCKET_DIR ""

// system type defines
#if defined(_WIN32) || defined(_WIN64) || defined (_WIN32_WCE)
# define DBUS_WIN
# ifdef _WIN32_WCE
#  define DBUS_WINCE
# else
#  define DBUS_WIN32
   /* Define to the minimum supported Windows version (0x0600 is Vista) */
#  define _WIN32_WINNT 0x0600
# endif
#else
# define DBUS_UNIX
#endif 

#if defined(_WIN32) || defined(_WIN64)
// mingw mode_t
# ifdef HAVE_STDIO_H
#  include <stdio.h>
# endif
# ifndef _MSC_VER
#  define uid_t int
#  define gid_t int
# else
   typedef int mode_t;
# endif
#endif	// defined(_WIN32) || defined(_WIN64)

#ifdef interface
#undef interface
#endif

#ifndef SIGHUP
#define SIGHUP	1
#endif

#ifdef DBUS_WIN
#define FD_SETSIZE 8192
#endif

#define HAVE_DECL_ENVIRON 0
#define HAVE_DECL_LOG_PERROR 0
#define HAVE_DECL_MSG_NOSIGNAL 0
#define HAVE_DECL_SYS_PIDFD_OPEN 0

#endif  // _DBUS_CONFIG_H