-
-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy pathautoconfig_msvc.h
More file actions
341 lines (298 loc) · 9.13 KB
/
Copy pathautoconfig_msvc.h
File metadata and controls
341 lines (298 loc) · 9.13 KB
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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
/*
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete ports:
* - MAC (MAC, MAC_AUX and "MAC_CP" defines)
* - EPSON, DELTA, IMP, NCR3000, NeXT, M88K, Cray
* - OS/2, Apollo
*
* 2002-02-23 Sean Leyne - Code Cleanup, removed old Win3.1 port (Windows_Only)
*
* 2002.10.27 Sean Leyne - Code Cleanup, removed obsolete "UNIXWARE" port
* 2002.10.27 Sean Leyne - Code Cleanup, removed obsolete "Ultrix" port
*
* 2002.10.28 Sean Leyne - Completed removal of obsolete "DGUX" port
* 2002.10.28 Sean Leyne - Code cleanup, removed obsolete "MPEXL" port
* 2002.10.28 Sean Leyne - Code cleanup, removed obsolete "SGI" port
*
* 2002.10.29 Sean Leyne - Removed obsolete "Netware" port
*
* 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
*
*/
#ifndef AUTOCONFIG_H
#define AUTOCONFIG_H
//#pragma warning(disable:4099) // class/struct mixups
#pragma warning(disable:4251) // needs to have dll-interface
#pragma warning(disable:4291) // no matching op. delete (there are)
//#pragma warning(disable:4355) // 'this' used in base member initializer list
#pragma warning(disable:4786) // debug identifiers are truncated
#pragma warning(disable:4800) // forcing value to bool 'true' or 'false' (performance warning)
// New warnings at level W4
//#pragma warning(disable:4018) // signed/unsigned mismatch
//#pragma warning(disable:4100) // unreferenced formal parameter
#pragma warning(disable:4127) // conditional expression is constant
//#pragma warning(disable:4131) // uses old-style declarator
//#pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
//#pragma warning(disable:4189) // local variable is initialized but not referenced
#pragma warning(disable:4211) // nonstandard extension used : redefined extern to static
#pragma warning(disable:4214) // nonstandard extension used : bit field types other than int
#pragma warning(disable:4244) // conversion from '.......' to '......', possible loss of data
#pragma warning(disable:4245) // conversion from '.......' to '......', signed/unsigned mismatch
#pragma warning(disable:4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#pragma warning(disable:4291) // no matching operator delete found; memory will not be freed if initialization throws an exception
#pragma warning(disable:4309) // truncation of constant value
#pragma warning(disable:4310) // cast truncates constant value
#pragma warning(disable:4355) // '....' used in base member initializer list
//#pragma warning(disable:4505) // unreferenced local function has been removed
#pragma warning(disable:4510) // '<cls>': default constructor could not be generated
#pragma warning(disable:4511) // copy constructor could not be generated
#pragma warning(disable:4512) // assignment operator could not be generated
#pragma warning(disable:4514) // unreferenced inline function has been removed
#pragma warning(disable:4610) // class '<cls>' can never be instantiated - user defined constructor required
#pragma warning(disable:4663) // to explicitly specialize class template '.....' use the following syntax
#pragma warning(disable:4701) // local variable '......' may be used without having been initialized
//#pragma warning(disable:4702) // unreachable code
#pragma warning(disable:4706) // assignment within conditional expression
#pragma warning(disable:4709) // comma operator within array index expression
#pragma warning(disable:4710) // function '.....' not inlined
#pragma warning(disable:4711) // function '.....' selected for automatic inline expansion
// Warning from Microsoft Visual Studio\VC98\include\fstream
//#pragma warning(disable:4097) // typedef-name '......' used as synonym for class-name '.....'
// New MSVC8 warnings
#pragma warning(disable:4996) // 'identificator' was declared deprecated
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#ifdef _MSC_VER // don't know if this is useful for MinGW
#define NOATOM
//#define NOGDI
//#define NOGDICAPMASKS
#define NOMETAFILE
#define NOMINMAX
//#define NOMSG
#define NOOPENFILE
#define NORASTEROPS
#define NOSCROLL
#define NOSOUND
#define NOSYSMETRICS
#define NOTEXTMETRIC
#define NOWH
#define NOCOMM
#define NOKANJI
#define NOCRYPT
#define NOMCX
//#define NOWINMESSAGES
//#define NOWINSTYLES
//#define NOMENUS
#define NOICONS
#define NOCLIPBOARD
//#define NOCOLOR
//#define NOSERVICE
//#define NOHELP
#endif
/* Headers */
#define HAVE_ASSERT_H
#define HAVE_CTYPE_H
#undef HAVE_UNISTD_H
#define HAVE_FCNTL_H
#undef HAVE_GRP_H
#undef HAVE_PWD_H
#undef HAVE_LIBIO_H
#define HAVE_LOCALE_H
#define HAVE_MATH_H
#undef HAVE_PTHREAD_H
#undef HAVE_SYS_TYPES_H
#define HAVE_SYS_STAT_H
#undef HAVE_SYS_UIO_H
#undef HAVE_SYS_WAIT_H
#undef TIME_WITH_SYS_TIME
#define HAVE_TIME_H
#undef HAVE_SYS_TIME_H
#define HAVE_SYS_TIMEB_H
#undef HAVE_SYS_PARAM_H
#undef HAVE_SYS_IOCTL_H
#define HAVE_LIMITS_H
#define HAVE_SETJMP_H
#define HAVE_STDARG_H
#define HAVE_STDLIB_H
#define HAVE_STRING_H
#define HAVE_SIGNAL_H
#define HAVE_IO_H
#undef HAVE_SYS_SIGNAL_H
#undef HAVE_SYS_SIGINFO_H
#undef HAVE_EDITLINE_H
#undef HAVE_TERMIO_H
#undef HAVE_TERMIOS_H
#undef HAVE_DIRENT_H
#undef HAVE_SYS_NDIR_H
#undef HAVE_SYS_DIR_H
#undef HAVE_NDIR_H
#undef HAVE_UNISTD_H
#undef HAVE_VARARGS_H
#undef HAVE_VFORK_H
#undef HAVE_CRYPT_H
#undef HAVE_NETCONFIG_H
#undef HAVE_NETINET_IN_H
#undef HAVE_RPC_RPC_H
#undef HAVE_RPC_XDR_H
#undef HAVE_AIO_H
#undef HAVE_MNTENT_H
#undef HAVE_MNTTAB_H
#undef HAVE_SYS_MNTENT_H
#undef HAVE_SYS_MNTTAB_H
#undef HAVE_SYS_IPC_H
#undef HAVE_SYS_FILE_H
#undef HAVE_SOCKET_H
#undef HAVE_SYS_SOCKET_H
#undef HAVE_SYS_SOCKIO_H
#undef HAVE_WINSOCK2_H
#define HAVE_FLOAT_H
#define HAVE_ZLIB_H
/* Functions */
#undef HAVE_GETTIMEOFDAY
#undef HAVE_TIME
#undef HAVE_TIMES
#undef HAVE_STRCASECMP
#define HAVE_STRICMP
#undef HAVE_STRNCASECMP
#define HAVE_STRNICMP
#define HAVE_DIRNAME
#undef HAVE_SIGACTION
#undef HAVE_SETITIMER
#define HAVE_SNPRINTF
#define HAVE_VSNPRINTF
#define HAVE_SWAB
#define HAVE__SWAB
#undef HAVE_MMAP
#undef HAVE_WORKING_VFORK
#undef HAVE_SETPGRP
#undef HAVE_SETPGID
#undef HAVE_GETPGRP
#undef SETPGRP_VOID
#undef HAVE_FLOCK
#undef HAVE_INITGROUPS
#define HAVE_GETPAGESIZE
#undef HAVE_CRYPT
#undef HAVE_XDR_HYPER
#undef HAVE_PREAD
#undef HAVE_PWRITE
#define HAVE_GETCWD
#undef HAVE_GETWD
#undef HAVE_SETMNTENT
#undef HAVE_GETMNTENT
#undef GETMNTENT_TAKES_TWO_ARGUMENTS
#undef HAVE_TCGETATTR
#define HAVE_STRDUP
#undef HAVE_MKSTEMP
#undef HAVE_LLRINT
#undef HAVE_LOCALTIME_R
#undef HAVE_GMTIME_R
#undef HAVE_SYS_SELECT_H
#if defined _MSC_VER
#if _MSC_VER < 1500
#define vsnprintf _vsnprintf
#endif
#define isnan _isnan
#endif
/* Types */
#undef HAVE_SOCKLEN_T
#undef HAVE_INFINITY
/* gettimeofday accepts second (timezone) argument */
#undef GETTIMEOFDAY_RETURNS_TIMEZONE
/* Are we doing 64bit IO on unix */
#undef _FILE_OFFSET_BITS
#undef _LARGE_FILES
/* target architecture */
#if defined(_M_IX86)
/* sizeof(void *) */
#define SIZEOF_VOID_P 4
/* sizeof(size_t) */
#define SIZEOF_SIZE_T 4
/* alignment of long */
#define FB_ALIGNMENT 4
#elif defined(_M_AMD64)
#define AMD64
/* sizeof(void *) */
#define SIZEOF_VOID_P 8
/* sizeof(size_t) */
#define SIZEOF_SIZE_T 8
/* alignment of long */
#define FB_ALIGNMENT 8
#else
#error unknown target platform
#endif
/* sizeof(long) */
#define SIZEOF_LONG 4
/* alignment of double */
#define FB_DOUBLE_ALIGN 8
/* Is union semun defined? */
#undef HAVE_SEMUN
/* Is struct xdr_ops defined? */
#undef HAVE_STRUCT_XDR_OPS
/* Functions */
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#define snprintf _snprintf
#endif
/* Is the platform big endian? */
#undef WORDS_BIGENDIAN
/* Return type of signal handler */
#define RETSIGTYPE void
/* Are paths case sensitive? */
#define CASE_SENSITIVITY false
/* Do we build (need) the lock manager process? */
#undef MANAGER_PROCESS
/* Support databases on Raw Devices (UNIX only) */
#undef SUPPORT_RAW_DEVICES
/* Support for ISO syntax for thread-local data */
#undef HAVE___THREAD
/* Inet service name and port */
#define FB_SERVICE_NAME "gds_db"
#define FB_SERVICE_PORT 3050
/* Wnet pipe name */
#define FB_PIPE_NAME "interbas"
/* Xnet objects name */
#define FB_IPC_NAME "FIREBIRD"
/* Maximum allowed pathname length */
#define MAXPATHLEN 260 // should correspond to MAX_PATH define in windef.h
/* Windows platforms support threads */
#define HAVE_MULTI_THREAD 1
/* CPU types */
#undef PowerPC
#undef sparc
#undef __sparc
#define i386
#undef MIPS
#undef MIPSEL
/* various OS efforts */
#undef DARWIN
#undef LINUX
#undef FREEBSD
#undef NETBSD
#undef sun
#undef __sun
#undef SOLARIS
#undef HPUX
#undef VMS
#undef AIX
#define WIN_NT
#undef SCO_EV
#define FB_PREFIX "c:\\Program Files\\Firebird\\"
#define FB_BINDIR ""
#define FB_CONFDIR ""
#define FB_DOCDIR ""
#define FB_GUARDDIR ""
#define FB_HELPDIR ""
#define FB_INCDIR ""
#define FB_INTLDIR ""
#define FB_LIBDIR ""
#define FB_LOGDIR ""
#define FB_MISCDIR ""
#define FB_MSGDIR ""
#define FB_PLUGDIR ""
#define FB_SAMPLEDBDIR ""
#define FB_SAMPLEDIR ""
#define FB_SBINDIR ""
#define FB_SECDBDIR ""
#define FB_UDFDIR ""
#define FB_LOGFILENAME "FB-%Y-%m-%d.log"
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
#endif