]> git.lyx.org Git - lyx.git/blob - development/cmake/configCompiler.h.msvc
cmake: more merged build fixes
[lyx.git] / development / cmake / configCompiler.h.msvc
1 /*
2  * \file configCompiler.h
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * This is the compilation configuration file for LyX.
7  * It was generated by autoconfs configure.
8  * You might want to change some of the defaults if something goes wrong
9  * during the compilation.
10  */
11
12 #ifndef _CONFIG_COMPILER_H
13 #define _CONFIG_COMPILER_H
14
15
16 #define HAVE_IO_H 1
17 #define HAVE_LIMITS_H 1
18 #define HAVE_LOCALE_H 1
19 #define HAVE_PROCESS_H 1
20 #define HAVE_STDLIB_H 1
21 #define HAVE_SYS_STAT_H 1
22 /* #undef HAVE_SYS_TIME_H 1 */
23 #define HAVE_SYS_TYPES_H 1
24 #define HAVE_SYS_UTIME_H 1
25 /* #undef HAVE_SYS_SOCKET_H 1 */
26 /* #undef HAVE_UNISTD_H 1 */
27 /* #undef HAVE_INTTYPES_H 1 */
28 /* #undef HAVE_UTIME_H 1 */
29 #define HAVE_STRING_H 1
30 /* #undef HAVE_STRINGS_H 1 */
31 /* #undef HAVE_ISTREAM 1 */
32 /* #undef HAVE_OSTREAM 1 */
33 /* #undef HAVE_IOS 1 */
34 /* #undef HAVE_LOCALE 1 */
35 #define HAVE_OPEN 1
36 #define HAVE_CHMOD 1
37 #define HAVE_CLOSE 1
38 /* #undef HAVE_POPEN 1 */
39 /* #undef HAVE_PCLOSE 1 */
40 #define HAVE__OPEN 1
41 #define HAVE__CLOSE 1
42 #define HAVE__POPEN 1
43 #define HAVE__PCLOSE 1
44 #define HAVE_GETPID 1
45 #define HAVE__GETPID 1
46 #define HAVE_MKDIR 1
47 #define HAVE__MKDIR 1
48 #define HAVE_PUTENV 1
49 #define HAVE_MKTEMP 1
50 /* #undef HAVE_MKSTEMP 1 */
51 #define HAVE_STRERROR 1
52 /* #undef HAVE_STD_COUNT 1 */
53 /* #undef HAVE_ASPRINTF 1 */
54 #define HAVE_WPRINTF 1
55 /* #undef HAVE_SNPRINTF 1 */
56 #define HAVE_POSIX_PRINTF 1
57 /* #undef HAVE_FCNTL 1 */
58 /* #undef HAVE_INTMAX_T 1 */
59 /* #undef HAVE_INTTYPES_H_WITH_UINTMAX 1 */
60 #define HAVE_DECL_ISTREAMBUF_ITERATOR 1
61 /* #undef CXX_GLOBAL_CSTD 1 */
62 #define HAVE_GETCWD 1
63 /* #undef HAVE_STPCPY 1 */
64 /* #undef HAVE_STRCASECMP 1 */
65 #define HAVE_STRDUP 1
66 #define HAVE_STRTOUL 1
67 /* #undef HAVE___FSETLOCKING 1 */
68 /* #undef HAVE_MEMPCPY 1 */
69 /* #undef HAVE___ARGZ_COUNT 1 */
70 /* #undef HAVE___ARGZ_NEXT 1 */
71 /* #undef HAVE___ARGZ_STRINGIFY 1 */
72 #define HAVE_SETLOCALE 1
73 /* #undef HAVE_TSEARCH 1 */
74 /* #undef HAVE_GETEGID 1 */
75 /* #undef HAVE_GETGID 1 */
76 /* #undef HAVE_GETUID 1 */
77 #define HAVE_WCSLEN 1
78 /* #undef HAVE_MKFIFO 1 */
79 #define HAVE_WPRINTF 1
80 #define HAVE_LONG_DOUBLE 1
81 #define HAVE_LONG_LONG 1
82 /* #undef HAVE_WCHAR_T 1 */
83 /* #undef HAVE_WINT_T 1 */
84 /* #undef HAVE_STDINT_H_WITH_UINTMAX 1 */
85 /* #undef HAVE_LC_MESSAGES 1     */
86 /* #undef HAVE_SSTREAM 1 */
87 /* #undef HAVE_ARGZ_H 1 */
88 #define SIZEOF_WCHAR_T_IS_2 1
89 /* #undef SIZEOF_WCHAR_T_IS_4 1 */
90
91 #ifdef SIZEOF_WCHAR_T_IS_2
92 #  define SIZEOF_WCHAR_T 2
93 #else
94 #  ifdef SIZEOF_WCHAR_T_IS_4
95 #    define SIZEOF_WCHAR_T 4
96 #  endif
97 #endif
98
99 /* #undef HAVE_ALLOCA 1 */
100 #define HAVE_SYMBOL_ALLOCA 1
101 #if defined(HAVE_SYMBOL_ALLOCA) && !defined(HAVE_ALLOCA)
102 #define HAVE_ALLOCA
103 #endif
104
105
106 #define HAVE_ICONV_CONST 1
107 #ifdef HAVE_ICONV_CONST
108 #define ICONV_CONST const
109 #else
110 #define ICONV_CONST
111 #endif
112
113 #ifdef _MSC_VER
114 #undef HAVE_OPEN  // use _open instead
115 #define pid_t int
116 #define PATH_MAX 512
117 #endif
118
119 #ifdef _WIN32 
120 #undef HAVE_MKDIR // use _mkdir instead
121 #endif
122
123 #define BOOST_ALL_NO_LIB 1
124
125 #if defined(HAVE_OSTREAM) && defined(HAVE_LOCALE) && defined(HAVE_SSTREAM)
126 #  define USE_BOOST_FORMAT 1
127 #else
128 #  define USE_BOOST_FORMAT 0
129 #endif
130
131 #ifdef _DEBUG
132 #  define ENABLE_ASSERTIONS 1
133 #endif
134
135 #ifndef ENABLE_ASSERTIONS
136 #  define BOOST_DISABLE_ASSERTS 1
137 #endif
138 #define BOOST_ENABLE_ASSERT_HANDLER 1
139
140 #define BOOST_DISABLE_THREADS 1
141 #define BOOST_NO_WSTRING 1
142
143 #ifdef __CYGWIN__
144 #  define BOOST_POSIX 1
145 #  define BOOST_POSIX_API 1
146 #  define BOOST_POSIX_PATH 1
147 #endif
148
149 /*
150  * the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t
151  * support compiled in:
152  * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9
153  * And we are not interested at all what libc
154  * does: What we need is a 32bit wide wchar_t, and a libstdc++ that
155  * has the needed wchar_t support and uses UCS4. Whether it
156  * implements this with the help of libc, or whether it has own code
157  * does not matter for us, because we don't use libc directly (Georg)
158 */
159 #if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
160 #  define USE_WCHAR_T
161 #endif
162
163 #if defined(MAKE_INTL_LIB) && defined(_MSC_VER)
164 #define __attribute__(x)
165 #define inline
166 #define uintmax_t UINT_MAX
167 #endif
168
169 #ifdef _MSC_VER
170 #ifdef HAVE_CHMOD
171 #undef HAVE_CHMOD
172 #endif
173 #endif
174
175 #ifdef HAVE_CHMOD
176 #define HAVE_MODE_T
177 #endif
178
179
180
181 #endif