Disable nextmap in Synergy and Dystopia (
bug 3687,
bug 3741; r=liam)
1 /* __MSDOS__ set when compiling for DOS (not Windows)
2 * _Windows set when compiling for any version of Microsoft Windows
3 * __WIN32__ set when compiling for Windows95 or WindowsNT (32 bit mode)
4 * __32BIT__ set when compiling in 32-bit "flat" mode (DOS or Windows)
6 * Copyright 1998-2005, ITB CompuPhase, The Netherlands.
13 /* Every compiler uses different "default" macros to indicate the mode
14 * it is in. Throughout the source, we use the Borland C++ macros, so
15 * the macros of Watcom C/C++ and Microsoft Visual C/C++ are mapped to
16 * those of Borland C++.
18 #if defined(__WATCOMC__)
19 # if defined(__WINDOWS__) || defined(__NT__)
25 # if defined(_Windows) && defined(__32BIT__)
28 #elif defined(_MSC_VER)
29 # if defined(_WINDOWS) || defined(_WIN32)
37 # if !defined _CRT_SECURE_NO_DEPRECATE
38 # define _CRT_SECURE_NO_DEPRECATE
40 # define strdup _strdup
41 # define stricmp _stricmp
42 # define access _access
44 # define strdup _strdup
45 # define unlink _unlink
49 #if defined __FreeBSD__
50 #include <sys/endian.h>
51 #elif defined __APPLE__
52 #include <machine/endian.h>
57 /* Linux NOW has these */
58 #if !defined BIG_ENDIAN
59 #define BIG_ENDIAN 4321
61 #if !defined LITTLE_ENDIAN
62 #define LITTLE_ENDIAN 1234
65 /* educated guess, BYTE_ORDER is undefined, i386 is common => little endian */
66 #if !defined BYTE_ORDER
68 #define BYTE_ORDER BIG_ENDIAN
70 #define BYTE_ORDER LITTLE_ENDIAN
74 #if defined __MSDOS__ || defined __WIN32__ || defined _Windows
75 #define DIRSEP_CHAR '\\'
76 #elif defined macintosh
77 #define DIRSEP_CHAR ':'
79 #define DIRSEP_CHAR '/' /* directory separator character */
82 /* _MAX_PATH is sometimes called differently and it may be in limits.h or
83 * stdlib.h instead of stdio.h.
85 #if !defined _MAX_PATH
86 /* not defined, perhaps stdio.h was not included */
90 #if !defined _MAX_PATH && !defined PATH_MAX
91 /* no _MAX_PATH and no MAX_PATH, perhaps it is in limits.h */
94 #if !defined _MAX_PATH && !defined PATH_MAX
95 /* no _MAX_PATH and no MAX_PATH, perhaps it is in stdlib.h */
98 /* if _MAX_PATH is undefined, try common alternative names */
99 #if !defined _MAX_PATH
101 #define _MAX_PATH MAX_PATH
102 #elif defined _POSIX_PATH_MAX
103 #define _MAX_PATH _POSIX_PATH_MAX
105 /* everything failed, actually we have a problem here... */
106 #define _MAX_PATH 1024
111 #endif /* _OSDEFS_H */