]>
Commit | Line | Data |
---|---|---|
e0c749a7 RN |
1 | /** |
2 | * Name: wx/chkconf.h | |
3 | * Purpose: check the config settings for consistency | |
4 | * Author: Vadim Zeitlin | |
5 | * Modified by: | |
6 | * Created: 09.08.00 | |
7 | * RCS-ID: $Id$ | |
8 | * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwindows.org> | |
9 | * Licence: wxWindows licence | |
10 | */ | |
1e6feb95 VZ |
11 | |
12 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ | |
13 | ||
01ebf752 JS |
14 | /* |
15 | Compiler-specific checking. | |
16 | */ | |
17 | ||
18 | #if defined(__WXMSW__) | |
19 | # include "wx/msw/chkconf.h" | |
20 | #elif defined(__WXMAC__) | |
21 | # include "wx/mac/chkconf.h" | |
22 | #endif | |
23 | ||
1e6feb95 | 24 | /* |
730dfeb4 | 25 | this global setting determines what should we do if the setting FOO |
1e6feb95 VZ |
26 | requires BAR and BAR is not set: we can either silently define BAR |
27 | (default, recommended) or give an error and abort (mainly useful for | |
730dfeb4 | 28 | developers only) |
1e6feb95 VZ |
29 | */ |
30 | #define wxABORT_ON_CONFIG_ERROR | |
31 | ||
6962f34e VZ |
32 | /* |
33 | global features | |
34 | */ | |
35 | ||
36 | /* GUI build by default */ | |
37 | #if !defined(wxUSE_GUI) | |
38 | # define wxUSE_GUI 1 | |
39 | #endif /* !defined(wxUSE_GUI) */ | |
40 | ||
1e6feb95 | 41 | /* |
03169422 RL |
42 | tests for non GUI features |
43 | */ | |
44 | ||
45 | #ifndef wxUSE_DYNLIB_CLASS | |
46 | # ifdef wxABORT_ON_CONFIG_ERROR | |
47 | # error "wxUSE_DYNLIB_CLASS must be defined." | |
48 | # else | |
49 | # define wxUSE_DYNLIB_CLASS 0 | |
50 | # endif | |
51 | #endif /* !defined(wxUSE_DYNLIB_CLASS) */ | |
52 | ||
4199367e VZ |
53 | #ifndef wxUSE_EXCEPTIONS |
54 | # ifdef wxABORT_ON_CONFIG_ERROR | |
55 | # error "wxUSE_EXCEPTIONS must be defined." | |
56 | # else | |
57 | # define wxUSE_EXCEPTIONS 0 | |
58 | # endif | |
59 | #endif /* !defined(wxUSE_EXCEPTIONS) */ | |
60 | ||
c7f3eecc VZ |
61 | #ifndef wxUSE_FILESYSTEM |
62 | # ifdef wxABORT_ON_CONFIG_ERROR | |
63 | # error "wxUSE_FILESYSTEM must be defined." | |
64 | # else | |
65 | # define wxUSE_FILESYSTEM 0 | |
66 | # endif | |
67 | #endif /* !defined(wxUSE_FILESYSTEM) */ | |
68 | ||
6fb17fd5 | 69 | /* don't give an error about this one yet, it's not fully implemented */ |
05815ab3 | 70 | #ifndef wxUSE_FSVOLUME |
6fb17fd5 | 71 | # define wxUSE_FSVOLUME 0 |
05815ab3 VZ |
72 | #endif /* !defined(wxUSE_FSVOLUME) */ |
73 | ||
03169422 RL |
74 | #ifndef wxUSE_DYNAMIC_LOADER |
75 | # ifdef wxABORT_ON_CONFIG_ERROR | |
76 | # error "wxUSE_DYNAMIC_LOADER must be defined." | |
77 | # else | |
78 | # define wxUSE_DYNAMIC_LOADER 0 | |
79 | # endif | |
80 | #endif /* !defined(wxUSE_DYNAMIC_LOADER) */ | |
81 | ||
a5d46b73 VZ |
82 | #ifndef wxUSE_LOG |
83 | # ifdef wxABORT_ON_CONFIG_ERROR | |
84 | # error "wxUSE_LOG must be defined." | |
85 | # else | |
86 | # define wxUSE_LOG 0 | |
87 | # endif | |
88 | #endif /* !defined(wxUSE_LOG) */ | |
89 | ||
90 | #ifndef wxUSE_LONGLONG | |
91 | # ifdef wxABORT_ON_CONFIG_ERROR | |
92 | # error "wxUSE_LONGLONG must be defined." | |
93 | # else | |
94 | # define wxUSE_LONGLONG 0 | |
95 | # endif | |
96 | #endif /* !defined(wxUSE_LONGLONG) */ | |
97 | ||
98 | #ifndef wxUSE_MIMETYPE | |
99 | # ifdef wxABORT_ON_CONFIG_ERROR | |
100 | # error "wxUSE_MIMETYPE must be defined." | |
101 | # else | |
102 | # define wxUSE_MIMETYPE 0 | |
103 | # endif | |
104 | #endif /* !defined(wxUSE_MIMETYPE) */ | |
105 | ||
106 | #ifndef wxUSE_PROTOCOL | |
107 | # ifdef wxABORT_ON_CONFIG_ERROR | |
108 | # error "wxUSE_PROTOCOL must be defined." | |
109 | # else | |
110 | # define wxUSE_PROTOCOL 0 | |
111 | # endif | |
112 | #endif /* !defined(wxUSE_PROTOCOL) */ | |
113 | ||
114 | /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */ | |
115 | #if !wxUSE_PROTOCOL | |
116 | # undef wxUSE_PROTOCOL_HTTP | |
117 | # undef wxUSE_PROTOCOL_FTP | |
118 | # undef wxUSE_PROTOCOL_FILE | |
119 | # define wxUSE_PROTOCOL_HTTP 0 | |
120 | # define wxUSE_PROTOCOL_FTP 0 | |
121 | # define wxUSE_PROTOCOL_FILE 0 | |
122 | #endif /* wxUSE_PROTOCOL */ | |
123 | ||
124 | #ifndef wxUSE_PROTOCOL_HTTP | |
125 | # ifdef wxABORT_ON_CONFIG_ERROR | |
126 | # error "wxUSE_PROTOCOL_HTTP must be defined." | |
127 | # else | |
128 | # define wxUSE_PROTOCOL_HTTP 0 | |
129 | # endif | |
130 | #endif /* !defined(wxUSE_PROTOCOL_HTTP) */ | |
131 | ||
132 | #ifndef wxUSE_PROTOCOL_FTP | |
133 | # ifdef wxABORT_ON_CONFIG_ERROR | |
134 | # error "wxUSE_PROTOCOL_FTP must be defined." | |
135 | # else | |
136 | # define wxUSE_PROTOCOL_FTP 0 | |
137 | # endif | |
138 | #endif /* !defined(wxUSE_PROTOCOL_FTP) */ | |
139 | ||
140 | #ifndef wxUSE_PROTOCOL_FILE | |
141 | # ifdef wxABORT_ON_CONFIG_ERROR | |
142 | # error "wxUSE_PROTOCOL_FILE must be defined." | |
143 | # else | |
144 | # define wxUSE_PROTOCOL_FILE 0 | |
145 | # endif | |
146 | #endif /* !defined(wxUSE_PROTOCOL_FILE) */ | |
147 | ||
148 | #ifndef wxUSE_REGEX | |
149 | # ifdef wxABORT_ON_CONFIG_ERROR | |
150 | # error "wxUSE_REGEX must be defined." | |
151 | # else | |
152 | # define wxUSE_REGEX 0 | |
153 | # endif | |
154 | #endif /* !defined(wxUSE_REGEX) */ | |
155 | ||
27b0c286 VS |
156 | #ifndef wxUSE_XML |
157 | # ifdef wxABORT_ON_CONFIG_ERROR | |
158 | # error "wxUSE_XML must be defined." | |
159 | # else | |
160 | # define wxUSE_XML 0 | |
161 | # endif | |
162 | #endif /* !defined(wxUSE_XML) */ | |
163 | ||
a5d46b73 VZ |
164 | #ifndef wxUSE_SOCKETS |
165 | # ifdef wxABORT_ON_CONFIG_ERROR | |
166 | # error "wxUSE_SOCKETS must be defined." | |
167 | # else | |
168 | # define wxUSE_SOCKETS 0 | |
169 | # endif | |
170 | #endif /* !defined(wxUSE_SOCKETS) */ | |
171 | ||
172 | #ifndef wxUSE_STREAMS | |
173 | # ifdef wxABORT_ON_CONFIG_ERROR | |
174 | # error "wxUSE_STREAMS must be defined." | |
175 | # else | |
176 | # define wxUSE_STREAMS 0 | |
177 | # endif | |
178 | #endif /* !defined(wxUSE_STREAMS) */ | |
179 | ||
180 | #ifndef wxUSE_STOPWATCH | |
181 | # ifdef wxABORT_ON_CONFIG_ERROR | |
182 | # error "wxUSE_STOPWATCH must be defined." | |
183 | # else | |
184 | # define wxUSE_STOPWATCH 0 | |
185 | # endif | |
186 | #endif /* !defined(wxUSE_STOPWATCH) */ | |
187 | ||
188 | #ifndef wxUSE_TEXTBUFFER | |
189 | # ifdef wxABORT_ON_CONFIG_ERROR | |
190 | # error "wxUSE_TEXTBUFFER must be defined." | |
191 | # else | |
192 | # define wxUSE_TEXTBUFFER 0 | |
193 | # endif | |
194 | #endif /* !defined(wxUSE_TEXTBUFFER) */ | |
195 | ||
196 | #ifndef wxUSE_TEXTFILE | |
197 | # ifdef wxABORT_ON_CONFIG_ERROR | |
198 | # error "wxUSE_TEXTFILE must be defined." | |
199 | # else | |
200 | # define wxUSE_TEXTFILE 0 | |
201 | # endif | |
202 | #endif /* !defined(wxUSE_TEXTFILE) */ | |
203 | ||
204 | #ifndef wxUSE_UNICODE | |
205 | # ifdef wxABORT_ON_CONFIG_ERROR | |
206 | # error "wxUSE_UNICODE must be defined." | |
207 | # else | |
208 | # define wxUSE_UNICODE 0 | |
209 | # endif | |
210 | #endif /* !defined(wxUSE_UNICODE) */ | |
211 | ||
212 | #ifndef wxUSE_URL | |
213 | # ifdef wxABORT_ON_CONFIG_ERROR | |
214 | # error "wxUSE_URL must be defined." | |
215 | # else | |
216 | # define wxUSE_URL 0 | |
217 | # endif | |
218 | #endif /* !defined(wxUSE_URL) */ | |
219 | ||
03169422 RL |
220 | /* |
221 | all these tests are for GUI only | |
1e6feb95 VZ |
222 | */ |
223 | #if wxUSE_GUI | |
224 | ||
225 | /* | |
226 | all of the settings tested below must be defined or we'd get an error from | |
227 | preprocessor about invalid integer expression | |
228 | */ | |
229 | ||
230 | #ifndef wxUSE_ACCEL | |
231 | # ifdef wxABORT_ON_CONFIG_ERROR | |
232 | # error "wxUSE_ACCEL must be defined." | |
233 | # else | |
234 | # define wxUSE_ACCEL 0 | |
235 | # endif | |
236 | #endif /* !defined(wxUSE_ACCEL) */ | |
237 | ||
238 | #ifndef wxUSE_BMPBUTTON | |
239 | # ifdef wxABORT_ON_CONFIG_ERROR | |
240 | # error "wxUSE_BMPBUTTON must be defined." | |
241 | # else | |
242 | # define wxUSE_BMPBUTTON 0 | |
243 | # endif | |
244 | #endif /* !defined(wxUSE_BMPBUTTON) */ | |
245 | ||
246 | #ifndef wxUSE_BUTTON | |
247 | # ifdef wxABORT_ON_CONFIG_ERROR | |
248 | # error "wxUSE_BUTTON must be defined." | |
249 | # else | |
250 | # define wxUSE_BUTTON 0 | |
251 | # endif | |
252 | #endif /* !defined(wxUSE_BUTTON) */ | |
253 | ||
254 | #ifndef wxUSE_CALENDARCTRL | |
255 | # ifdef wxABORT_ON_CONFIG_ERROR | |
256 | # error "wxUSE_CALENDARCTRL must be defined." | |
257 | # else | |
258 | # define wxUSE_CALENDARCTRL 0 | |
259 | # endif | |
260 | #endif /* !defined(wxUSE_CALENDARCTRL) */ | |
261 | ||
262 | #ifndef wxUSE_CARET | |
263 | # ifdef wxABORT_ON_CONFIG_ERROR | |
264 | # error "wxUSE_CARET must be defined." | |
265 | # else | |
266 | # define wxUSE_CARET 0 | |
267 | # endif | |
268 | #endif /* !defined(wxUSE_CARET) */ | |
269 | ||
270 | #ifndef wxUSE_CHECKBOX | |
271 | # ifdef wxABORT_ON_CONFIG_ERROR | |
272 | # error "wxUSE_CHECKBOX must be defined." | |
273 | # else | |
274 | # define wxUSE_CHECKBOX 0 | |
275 | # endif | |
276 | #endif /* !defined(wxUSE_CHECKBOX) */ | |
277 | ||
278 | #ifndef wxUSE_CHECKLISTBOX | |
279 | # ifdef wxABORT_ON_CONFIG_ERROR | |
280 | # error "wxUSE_CHECKLISTBOX must be defined." | |
281 | # else | |
282 | # define wxUSE_CHECKLISTBOX 0 | |
283 | # endif | |
284 | #endif /* !defined(wxUSE_CHECKLISTBOX) */ | |
285 | ||
286 | #ifndef wxUSE_CHOICE | |
287 | # ifdef wxABORT_ON_CONFIG_ERROR | |
288 | # error "wxUSE_CHOICE must be defined." | |
289 | # else | |
290 | # define wxUSE_CHOICE 0 | |
291 | # endif | |
292 | #endif /* !defined(wxUSE_CHOICE) */ | |
293 | ||
3379ed37 VZ |
294 | #ifndef wxUSE_CHOICEDLG |
295 | # ifdef wxABORT_ON_CONFIG_ERROR | |
296 | # error "wxUSE_CHOICEDLG must be defined." | |
297 | # else | |
298 | # define wxUSE_CHOICEDLG 0 | |
299 | # endif | |
300 | #endif /* !defined(wxUSE_CHOICEDLG) */ | |
301 | ||
1e6feb95 VZ |
302 | #ifndef wxUSE_CLIPBOARD |
303 | # ifdef wxABORT_ON_CONFIG_ERROR | |
304 | # error "wxUSE_CLIPBOARD must be defined." | |
305 | # else | |
306 | # define wxUSE_CLIPBOARD 0 | |
307 | # endif | |
308 | #endif /* !defined(wxUSE_CLIPBOARD) */ | |
309 | ||
a2c0a9c5 VZ |
310 | #ifndef wxUSE_COLOURDLG |
311 | # ifdef wxABORT_ON_CONFIG_ERROR | |
312 | # error "wxUSE_COLOURDLG must be defined." | |
313 | # else | |
314 | # define wxUSE_COLOURDLG 0 | |
315 | # endif | |
316 | #endif /* !defined(wxUSE_COLOURDLG) */ | |
317 | ||
1e6feb95 VZ |
318 | #ifndef wxUSE_COMBOBOX |
319 | # ifdef wxABORT_ON_CONFIG_ERROR | |
320 | # error "wxUSE_COMBOBOX must be defined." | |
321 | # else | |
322 | # define wxUSE_COMBOBOX 0 | |
323 | # endif | |
324 | #endif /* !defined(wxUSE_COMBOBOX) */ | |
325 | ||
326 | #ifndef wxUSE_DATAOBJ | |
327 | # ifdef wxABORT_ON_CONFIG_ERROR | |
328 | # error "wxUSE_DATAOBJ must be defined." | |
329 | # else | |
330 | # define wxUSE_DATAOBJ 0 | |
331 | # endif | |
332 | #endif /* !defined(wxUSE_DATAOBJ) */ | |
333 | ||
f8ba082e VZ |
334 | #ifndef wxUSE_DISPLAY |
335 | # ifdef wxABORT_ON_CONFIG_ERROR | |
336 | # error "wxUSE_DISPLAY must be defined." | |
337 | # else | |
338 | # define wxUSE_DISPLAY 0 | |
339 | # endif | |
340 | #endif /* !defined(wxUSE_DISPLAY) */ | |
341 | ||
3379ed37 VZ |
342 | #ifndef wxUSE_DOC_VIEW_ARCHITECTURE |
343 | # ifdef wxABORT_ON_CONFIG_ERROR | |
344 | # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined." | |
345 | # else | |
346 | # define wxUSE_DOC_VIEW_ARCHITECTURE 0 | |
347 | # endif | |
348 | #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */ | |
349 | ||
1e6feb95 VZ |
350 | #ifndef wxUSE_FILEDLG |
351 | # ifdef wxABORT_ON_CONFIG_ERROR | |
352 | # error "wxUSE_FILEDLG must be defined." | |
353 | # else | |
354 | # define wxUSE_FILEDLG 0 | |
355 | # endif | |
356 | #endif /* !defined(wxUSE_FILEDLG) */ | |
357 | ||
358 | #ifndef wxUSE_FONTDLG | |
359 | # ifdef wxABORT_ON_CONFIG_ERROR | |
360 | # error "wxUSE_FONTDLG must be defined." | |
361 | # else | |
362 | # define wxUSE_FONTDLG 0 | |
363 | # endif | |
364 | #endif /* !defined(wxUSE_FONTDLG) */ | |
365 | ||
366 | #ifndef wxUSE_FONTMAP | |
367 | # ifdef wxABORT_ON_CONFIG_ERROR | |
368 | # error "wxUSE_FONTMAP must be defined." | |
369 | # else | |
370 | # define wxUSE_FONTMAP 0 | |
371 | # endif | |
372 | #endif /* !defined(wxUSE_FONTMAP) */ | |
373 | ||
374 | #ifndef wxUSE_GAUGE | |
375 | # ifdef wxABORT_ON_CONFIG_ERROR | |
376 | # error "wxUSE_GAUGE must be defined." | |
377 | # else | |
378 | # define wxUSE_GAUGE 0 | |
379 | # endif | |
380 | #endif /* !defined(wxUSE_GAUGE) */ | |
381 | ||
382 | #ifndef wxUSE_GRID | |
383 | # ifdef wxABORT_ON_CONFIG_ERROR | |
384 | # error "wxUSE_GRID must be defined." | |
385 | # else | |
386 | # define wxUSE_GRID 0 | |
387 | # endif | |
388 | #endif /* !defined(wxUSE_GRID) */ | |
389 | ||
3379ed37 VZ |
390 | #ifndef wxUSE_HELP |
391 | # ifdef wxABORT_ON_CONFIG_ERROR | |
392 | # error "wxUSE_HELP must be defined." | |
393 | # else | |
394 | # define wxUSE_HELP 0 | |
395 | # endif | |
396 | #endif /* !defined(wxUSE_HELP) */ | |
397 | ||
05dcbb8e VZ |
398 | #ifndef wxUSE_HTML |
399 | # ifdef wxABORT_ON_CONFIG_ERROR | |
400 | # error "wxUSE_HTML must be defined." | |
401 | # else | |
402 | # define wxUSE_HTML 0 | |
403 | # endif | |
404 | #endif /* !defined(wxUSE_HTML) */ | |
405 | ||
c839485c VS |
406 | #ifndef wxUSE_LIBMSPACK |
407 | # ifndef __UNIX__ | |
408 | /* set to 0 on platforms that don't have libmspack */ | |
409 | # define wxUSE_LIBMSPACK 0 | |
410 | # else | |
411 | # ifdef wxABORT_ON_CONFIG_ERROR | |
412 | # error "wxUSE_LIBMSPACK must be defined." | |
413 | # else | |
414 | # define wxUSE_LIBMSPACK 0 | |
415 | # endif | |
416 | # endif | |
417 | #endif /* !defined(wxUSE_LIBMSPACK) */ | |
418 | ||
658974ae VS |
419 | #ifndef wxUSE_ICO_CUR |
420 | # ifdef wxABORT_ON_CONFIG_ERROR | |
421 | # error "wxUSE_ICO_CUR must be defined." | |
422 | # else | |
423 | # define wxUSE_ICO_CUR 0 | |
424 | # endif | |
425 | #endif /* !defined(wxUSE_ICO_CUR) */ | |
426 | ||
1663afc0 VS |
427 | #ifndef wxUSE_IFF |
428 | # ifdef wxABORT_ON_CONFIG_ERROR | |
429 | # error "wxUSE_IFF must be defined." | |
430 | # else | |
431 | # define wxUSE_IFF 0 | |
432 | # endif | |
433 | #endif /* !defined(wxUSE_IFF) */ | |
434 | ||
1e6feb95 VZ |
435 | #ifndef wxUSE_IMAGLIST |
436 | # ifdef wxABORT_ON_CONFIG_ERROR | |
437 | # error "wxUSE_IMAGLIST must be defined." | |
438 | # else | |
439 | # define wxUSE_IMAGLIST 0 | |
440 | # endif | |
441 | #endif /* !defined(wxUSE_IMAGLIST) */ | |
442 | ||
2131b89d VZ |
443 | #ifndef wxUSE_JOYSTICK |
444 | # ifdef wxABORT_ON_CONFIG_ERROR | |
445 | # error "wxUSE_JOYSTICK must be defined." | |
446 | # else | |
447 | # define wxUSE_JOYSTICK 0 | |
448 | # endif | |
449 | #endif /* !defined(wxUSE_JOYSTICK) */ | |
450 | ||
5b5e4f32 VZ |
451 | #ifndef wxUSE_LISTBOOK |
452 | # ifdef wxABORT_ON_CONFIG_ERROR | |
453 | # error "wxUSE_LISTBOOK must be defined." | |
454 | # else | |
455 | # define wxUSE_LISTBOOK 0 | |
456 | # endif | |
457 | #endif /* !defined(wxUSE_LISTBOOK) */ | |
458 | ||
1e6feb95 VZ |
459 | #ifndef wxUSE_LISTBOX |
460 | # ifdef wxABORT_ON_CONFIG_ERROR | |
461 | # error "wxUSE_LISTBOX must be defined." | |
462 | # else | |
463 | # define wxUSE_LISTBOX 0 | |
464 | # endif | |
465 | #endif /* !defined(wxUSE_LISTBOX) */ | |
466 | ||
467 | #ifndef wxUSE_LISTCTRL | |
468 | # ifdef wxABORT_ON_CONFIG_ERROR | |
469 | # error "wxUSE_LISTCTRL must be defined." | |
470 | # else | |
471 | # define wxUSE_LISTCTRL 0 | |
472 | # endif | |
473 | #endif /* !defined(wxUSE_LISTCTRL) */ | |
474 | ||
3379ed37 VZ |
475 | #ifndef wxUSE_LOGGUI |
476 | # ifdef wxABORT_ON_CONFIG_ERROR | |
477 | # error "wxUSE_LOGGUI must be defined." | |
478 | # else | |
479 | # define wxUSE_LOGGUI 0 | |
480 | # endif | |
481 | #endif /* !defined(wxUSE_LOGGUI) */ | |
482 | ||
483 | #ifndef wxUSE_LOGWINDOW | |
484 | # ifdef wxABORT_ON_CONFIG_ERROR | |
485 | # error "wxUSE_LOGWINDOW must be defined." | |
486 | # else | |
487 | # define wxUSE_LOGWINDOW 0 | |
488 | # endif | |
489 | #endif /* !defined(wxUSE_LOGWINDOW) */ | |
e421922f | 490 | |
3e6e2754 JS |
491 | #ifndef wxUSE_LOG_DIALOG |
492 | # ifdef wxABORT_ON_CONFIG_ERROR | |
493 | # error "wxUSE_LOG_DIALOG must be defined." | |
494 | # else | |
495 | # define wxUSE_LOG_DIALOG 0 | |
496 | # endif | |
71908213 | 497 | #endif /* !defined(wxUSE_LOG_DIALOG) */ |
3e6e2754 | 498 | |
1e6feb95 VZ |
499 | #ifndef wxUSE_MDI_ARCHITECTURE |
500 | # ifdef wxABORT_ON_CONFIG_ERROR | |
501 | # error "wxUSE_MDI_ARCHITECTURE must be defined." | |
502 | # else | |
503 | # define wxUSE_MDI_ARCHITECTURE 0 | |
504 | # endif | |
505 | #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */ | |
506 | ||
507 | #ifndef wxUSE_MENUS | |
508 | # ifdef wxABORT_ON_CONFIG_ERROR | |
509 | # error "wxUSE_MENUS must be defined." | |
510 | # else | |
511 | # define wxUSE_MENUS 0 | |
512 | # endif | |
513 | #endif /* !defined(wxUSE_MENUS) */ | |
514 | ||
3379ed37 VZ |
515 | #ifndef wxUSE_MSGDLG |
516 | # ifdef wxABORT_ON_CONFIG_ERROR | |
517 | # error "wxUSE_MSGDLG must be defined." | |
518 | # else | |
519 | # define wxUSE_MSGDLG 0 | |
520 | # endif | |
521 | #endif /* !defined(wxUSE_MSGDLG) */ | |
522 | ||
1e6feb95 VZ |
523 | #ifndef wxUSE_NOTEBOOK |
524 | # ifdef wxABORT_ON_CONFIG_ERROR | |
525 | # error "wxUSE_NOTEBOOK must be defined." | |
526 | # else | |
527 | # define wxUSE_NOTEBOOK 0 | |
528 | # endif | |
529 | #endif /* !defined(wxUSE_NOTEBOOK) */ | |
530 | ||
d275c7eb VZ |
531 | #ifndef wxUSE_PALETTE |
532 | # ifdef wxABORT_ON_CONFIG_ERROR | |
533 | # error "wxUSE_PALETTE must be defined." | |
534 | # else | |
535 | # define wxUSE_PALETTE 0 | |
536 | # endif | |
537 | #endif /* !defined(wxUSE_PALETTE) */ | |
538 | ||
1e6feb95 VZ |
539 | #ifndef wxUSE_POPUPWIN |
540 | # ifdef wxABORT_ON_CONFIG_ERROR | |
541 | # error "wxUSE_POPUPWIN must be defined." | |
542 | # else | |
543 | # define wxUSE_POPUPWIN 0 | |
544 | # endif | |
545 | #endif /* !defined(wxUSE_POPUPWIN) */ | |
546 | ||
3379ed37 VZ |
547 | #ifndef wxUSE_PRINTING_ARCHITECTURE |
548 | # ifdef wxABORT_ON_CONFIG_ERROR | |
549 | # error "wxUSE_PRINTING_ARCHITECTURE must be defined." | |
550 | # else | |
551 | # define wxUSE_PRINTING_ARCHITECTURE 0 | |
552 | # endif | |
553 | #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */ | |
554 | ||
1e6feb95 VZ |
555 | #ifndef wxUSE_RADIOBOX |
556 | # ifdef wxABORT_ON_CONFIG_ERROR | |
557 | # error "wxUSE_RADIOBOX must be defined." | |
558 | # else | |
559 | # define wxUSE_RADIOBOX 0 | |
560 | # endif | |
561 | #endif /* !defined(wxUSE_RADIOBOX) */ | |
562 | ||
563 | #ifndef wxUSE_RADIOBTN | |
564 | # ifdef wxABORT_ON_CONFIG_ERROR | |
565 | # error "wxUSE_RADIOBTN must be defined." | |
566 | # else | |
567 | # define wxUSE_RADIOBTN 0 | |
568 | # endif | |
569 | #endif /* !defined(wxUSE_RADIOBTN) */ | |
570 | ||
571 | #ifndef wxUSE_SASH | |
572 | # ifdef wxABORT_ON_CONFIG_ERROR | |
573 | # error "wxUSE_SASH must be defined." | |
574 | # else | |
575 | # define wxUSE_SASH 0 | |
576 | # endif | |
577 | #endif /* !defined(wxUSE_SASH) */ | |
578 | ||
579 | #ifndef wxUSE_SCROLLBAR | |
580 | # ifdef wxABORT_ON_CONFIG_ERROR | |
581 | # error "wxUSE_SCROLLBAR must be defined." | |
582 | # else | |
583 | # define wxUSE_SCROLLBAR 0 | |
584 | # endif | |
585 | #endif /* !defined(wxUSE_SCROLLBAR) */ | |
586 | ||
587 | #ifndef wxUSE_SLIDER | |
588 | # ifdef wxABORT_ON_CONFIG_ERROR | |
589 | # error "wxUSE_SLIDER must be defined." | |
590 | # else | |
591 | # define wxUSE_SLIDER 0 | |
592 | # endif | |
593 | #endif /* !defined(wxUSE_SLIDER) */ | |
594 | ||
cad1a197 VS |
595 | #ifndef wxUSE_SOUND |
596 | # ifdef wxABORT_ON_CONFIG_ERROR | |
597 | # error "wxUSE_SOUND must be defined." | |
598 | # else | |
599 | # define wxUSE_SOUND 0 | |
600 | # endif | |
601 | #endif /* !defined(wxUSE_SOUND) */ | |
602 | ||
1e6feb95 VZ |
603 | #ifndef wxUSE_SPINBTN |
604 | # ifdef wxABORT_ON_CONFIG_ERROR | |
605 | # error "wxUSE_SPINBTN must be defined." | |
606 | # else | |
607 | # define wxUSE_SPINBTN 0 | |
608 | # endif | |
609 | #endif /* !defined(wxUSE_SPINBTN) */ | |
610 | ||
611 | #ifndef wxUSE_SPINCTRL | |
612 | # ifdef wxABORT_ON_CONFIG_ERROR | |
613 | # error "wxUSE_SPINCTRL must be defined." | |
614 | # else | |
615 | # define wxUSE_SPINCTRL 0 | |
616 | # endif | |
617 | #endif /* !defined(wxUSE_SPINCTRL) */ | |
618 | ||
2654a046 MB |
619 | #ifndef wxUSE_SPLASH |
620 | # ifdef wxABORT_ON_CONFIG_ERROR | |
621 | # error "wxUSE_SPLASH must be defined." | |
622 | # else | |
623 | # define wxUSE_SPLASH 0 | |
624 | # endif | |
625 | #endif /* !defined(wxUSE_SPLASH) */ | |
626 | ||
1e6feb95 VZ |
627 | #ifndef wxUSE_SPLITTER |
628 | # ifdef wxABORT_ON_CONFIG_ERROR | |
629 | # error "wxUSE_SPLITTER must be defined." | |
630 | # else | |
631 | # define wxUSE_SPLITTER 0 | |
632 | # endif | |
633 | #endif /* !defined(wxUSE_SPLITTER) */ | |
634 | ||
635 | #ifndef wxUSE_STATBMP | |
636 | # ifdef wxABORT_ON_CONFIG_ERROR | |
637 | # error "wxUSE_STATBMP must be defined." | |
638 | # else | |
639 | # define wxUSE_STATBMP 0 | |
640 | # endif | |
641 | #endif /* !defined(wxUSE_STATBMP) */ | |
642 | ||
643 | #ifndef wxUSE_STATBOX | |
644 | # ifdef wxABORT_ON_CONFIG_ERROR | |
645 | # error "wxUSE_STATBOX must be defined." | |
646 | # else | |
647 | # define wxUSE_STATBOX 0 | |
648 | # endif | |
649 | #endif /* !defined(wxUSE_STATBOX) */ | |
650 | ||
651 | #ifndef wxUSE_STATLINE | |
652 | # ifdef wxABORT_ON_CONFIG_ERROR | |
653 | # error "wxUSE_STATLINE must be defined." | |
654 | # else | |
655 | # define wxUSE_STATLINE 0 | |
656 | # endif | |
657 | #endif /* !defined(wxUSE_STATLINE) */ | |
658 | ||
3379ed37 VZ |
659 | #ifndef wxUSE_STATTEXT |
660 | # ifdef wxABORT_ON_CONFIG_ERROR | |
661 | # error "wxUSE_STATTEXT must be defined." | |
662 | # else | |
663 | # define wxUSE_STATTEXT 0 | |
664 | # endif | |
665 | #endif /* !defined(wxUSE_STATTEXT) */ | |
666 | ||
1e6feb95 VZ |
667 | #ifndef wxUSE_STATUSBAR |
668 | # ifdef wxABORT_ON_CONFIG_ERROR | |
669 | # error "wxUSE_STATUSBAR must be defined." | |
670 | # else | |
671 | # define wxUSE_STATUSBAR 0 | |
672 | # endif | |
673 | #endif /* !defined(wxUSE_STATUSBAR) */ | |
674 | ||
1e6feb95 VZ |
675 | #ifndef wxUSE_TAB_DIALOG |
676 | # ifdef wxABORT_ON_CONFIG_ERROR | |
677 | # error "wxUSE_TAB_DIALOG must be defined." | |
678 | # else | |
679 | # define wxUSE_TAB_DIALOG 0 | |
680 | # endif | |
681 | #endif /* !defined(wxUSE_TAB_DIALOG) */ | |
682 | ||
683 | #ifndef wxUSE_TEXTCTRL | |
684 | # ifdef wxABORT_ON_CONFIG_ERROR | |
685 | # error "wxUSE_TEXTCTRL must be defined." | |
686 | # else | |
687 | # define wxUSE_TEXTCTRL 0 | |
688 | # endif | |
689 | #endif /* !defined(wxUSE_TEXTCTRL) */ | |
690 | ||
f38bcae5 VZ |
691 | #ifndef wxUSE_TIPWINDOW |
692 | # ifdef wxABORT_ON_CONFIG_ERROR | |
693 | # error "wxUSE_TIPWINDOW must be defined." | |
694 | # else | |
695 | # define wxUSE_TIPWINDOW 0 | |
696 | # endif | |
697 | #endif /* !defined(wxUSE_TIPWINDOW) */ | |
698 | ||
1e6feb95 VZ |
699 | #ifndef wxUSE_TOOLBAR |
700 | # ifdef wxABORT_ON_CONFIG_ERROR | |
701 | # error "wxUSE_TOOLBAR must be defined." | |
702 | # else | |
703 | # define wxUSE_TOOLBAR 0 | |
704 | # endif | |
705 | #endif /* !defined(wxUSE_TOOLBAR) */ | |
706 | ||
707 | #ifndef wxUSE_TOOLTIPS | |
708 | # ifdef wxABORT_ON_CONFIG_ERROR | |
709 | # error "wxUSE_TOOLTIPS must be defined." | |
710 | # else | |
711 | # define wxUSE_TOOLTIPS 0 | |
712 | # endif | |
713 | #endif /* !defined(wxUSE_TOOLTIPS) */ | |
714 | ||
715 | #ifndef wxUSE_TREECTRL | |
716 | # ifdef wxABORT_ON_CONFIG_ERROR | |
717 | # error "wxUSE_TREECTRL must be defined." | |
718 | # else | |
719 | # define wxUSE_TREECTRL 0 | |
720 | # endif | |
721 | #endif /* !defined(wxUSE_TREECTRL) */ | |
722 | ||
f8ba082e | 723 | #ifndef wxUSE_VALIDATORS |
12491c1f | 724 | # ifdef wxABORT_ON_CONFIG_ERROR |
f8ba082e | 725 | # error "wxUSE_VALIDATORS must be defined." |
12491c1f | 726 | # else |
f8ba082e | 727 | # define wxUSE_VALIDATORS 0 |
12491c1f | 728 | # endif |
f8ba082e | 729 | #endif /* !defined(wxUSE_VALIDATORS) */ |
12491c1f | 730 | |
3379ed37 VZ |
731 | #ifndef wxUSE_WXHTML_HELP |
732 | # ifdef wxABORT_ON_CONFIG_ERROR | |
733 | # error "wxUSE_WXHTML_HELP must be defined." | |
734 | # else | |
735 | # define wxUSE_WXHTML_HELP 0 | |
736 | # endif | |
737 | #endif /* !defined(wxUSE_WXHTML_HELP) */ | |
738 | ||
a5d46b73 | 739 | #endif /* wxUSE_GUI */ |
c4d596ea | 740 | |
1e6feb95 VZ |
741 | /* |
742 | check consistency of the settings | |
743 | */ | |
a5d46b73 VZ |
744 | |
745 | #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP | |
746 | # if !wxUSE_PROTOCOL | |
747 | # ifdef wxABORT_ON_CONFIG_ERROR | |
748 | # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL" | |
749 | # else | |
750 | # undef wxUSE_PROTOCOL | |
751 | # define wxUSE_PROTOCOL 1 | |
752 | # endif | |
753 | # endif | |
754 | #endif /* wxUSE_PROTOCOL_XXX */ | |
755 | ||
756 | #if wxUSE_URL | |
757 | # if !wxUSE_PROTOCOL | |
758 | # ifdef wxABORT_ON_CONFIG_ERROR | |
759 | # error "wxUSE_URL requires wxUSE_PROTOCOL" | |
760 | # else | |
761 | # undef wxUSE_PROTOCOL | |
762 | # define wxUSE_PROTOCOL 1 | |
763 | # endif | |
764 | # endif | |
765 | #endif /* wxUSE_URL */ | |
766 | ||
767 | #if wxUSE_PROTOCOL | |
768 | # if !wxUSE_SOCKETS | |
769 | # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP | |
770 | # ifdef wxABORT_ON_CONFIG_ERROR | |
771 | # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS" | |
772 | # else | |
773 | # undef wxUSE_SOCKETS | |
774 | # define wxUSE_SOCKETS 1 | |
775 | # endif | |
776 | # endif | |
777 | # endif | |
778 | ||
779 | # if !wxUSE_STREAMS | |
780 | # ifdef wxABORT_ON_CONFIG_ERROR | |
781 | # error "wxUSE_PROTOCOL requires wxUSE_STREAMS" | |
782 | # else | |
783 | # undef wxUSE_STREAMS | |
784 | # define wxUSE_STREAMS 1 | |
785 | # endif | |
786 | # endif | |
787 | #endif /* wxUSE_PROTOCOL */ | |
788 | ||
c7f3eecc VZ |
789 | /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */ |
790 | #if wxUSE_HTML | |
791 | # if !wxUSE_FILESYSTEM | |
792 | # ifdef wxABORT_ON_CONFIG_ERROR | |
793 | # error "wxHTML requires wxFileSystem" | |
794 | # else | |
795 | # undef wxUSE_FILESYSTEM | |
796 | # define wxUSE_FILESYSTEM 1 | |
797 | # endif | |
798 | # endif | |
799 | #endif /* wxUSE_HTML */ | |
800 | ||
801 | #if wxUSE_FILESYSTEM | |
802 | # if !wxUSE_STREAMS | |
803 | # ifdef wxABORT_ON_CONFIG_ERROR | |
804 | # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS" | |
805 | # else | |
806 | # undef wxUSE_STREAMS | |
807 | # define wxUSE_STREAMS 1 | |
808 | # endif | |
809 | # endif | |
810 | #endif /* wxUSE_FILESYSTEM */ | |
811 | ||
ce73e654 VS |
812 | #if wxUSE_FS_INET |
813 | # if !wxUSE_PROTOCOL | |
814 | # ifdef wxABORT_ON_CONFIG_ERROR | |
815 | # error "wxUSE_FS_INET requires wxUSE_PROTOCOL" | |
816 | # else | |
817 | # undef wxUSE_PROTOCOL | |
818 | # define wxUSE_PROTOCOL 1 | |
819 | # endif | |
820 | # endif | |
821 | #endif /* wxUSE_FS_INET */ | |
822 | ||
c7f3eecc | 823 | #if wxUSE_STOPWATCH || wxUSE_DATETIME |
a5d46b73 VZ |
824 | # if !wxUSE_LONGLONG |
825 | # ifdef wxABORT_ON_CONFIG_ERROR | |
c7f3eecc | 826 | # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG" |
a5d46b73 VZ |
827 | # else |
828 | # undef wxUSE_LONGLONG | |
829 | # define wxUSE_LONGLONG 1 | |
830 | # endif | |
831 | # endif | |
832 | #endif /* wxUSE_STOPWATCH */ | |
833 | ||
834 | #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE | |
835 | # ifdef wxABORT_ON_CONFIG_ERROR | |
836 | # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE" | |
837 | # else | |
838 | # undef wxUSE_TEXTFILE | |
839 | # define wxUSE_TEXTFILE 1 | |
840 | # endif | |
841 | #endif /* wxUSE_MIMETYPE */ | |
842 | ||
843 | #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER | |
844 | # ifdef wxABORT_ON_CONFIG_ERROR | |
845 | # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER" | |
846 | # else | |
847 | # undef wxUSE_TEXTBUFFER | |
848 | # define wxUSE_TEXTBUFFER 1 | |
849 | # endif | |
850 | #endif /* wxUSE_TEXTFILE */ | |
851 | ||
852 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
853 | # ifdef wxABORT_ON_CONFIG_ERROR | |
854 | # error "wxUSE_TEXTFILE requires wxUSE_FILE" | |
855 | # else | |
856 | # undef wxUSE_FILE | |
857 | # define wxUSE_FILE 1 | |
858 | # endif | |
859 | #endif /* wxUSE_TEXTFILE */ | |
860 | ||
861 | #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE | |
862 | # ifdef wxABORT_ON_CONFIG_ERROR | |
863 | # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE" | |
864 | # else | |
865 | # undef wxUSE_UNICODE | |
866 | # define wxUSE_UNICODE 1 | |
867 | # endif | |
868 | #endif /* wxUSE_UNICODE_MSLU */ | |
869 | ||
38a0984e JS |
870 | /* ODBC and Unicode are now compatible */ |
871 | ||
67e489c5 | 872 | #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */ |
4ccf704a VZ |
873 | # ifdef wxABORT_ON_CONFIG_ERROR |
874 | /* (ODBC classes aren't Unicode-compatible yet) */ | |
875 | # error "wxUSE_ODBC can't be used with wxUSE_UNICODE" | |
876 | # else | |
877 | # undef wxUSE_ODBC | |
878 | # define wxUSE_ODBC 0 | |
879 | # endif | |
880 | #endif /* wxUSE_ODBC */ | |
881 | ||
7f799744 VS |
882 | #if wxUSE_XML && !wxUSE_WCHAR_T |
883 | # ifdef wxABORT_ON_CONFIG_ERROR | |
884 | # error "wxUSE_XML requires wxUSE_WCHAR_T" | |
885 | # else | |
886 | # undef wxUSE_XML | |
887 | # define wxUSE_XML 0 | |
888 | # endif | |
889 | #endif /* wxUSE_UNICODE_MSLU */ | |
890 | ||
1948bb32 VS |
891 | #if !wxUSE_DYNLIB_CLASS |
892 | # if wxUSE_DYNAMIC_LOADER | |
893 | # ifdef wxABORT_ON_CONFIG_ERROR | |
894 | # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." | |
895 | # else | |
896 | # define wxUSE_DYNLIB_CLASS 1 | |
897 | # endif | |
898 | # endif | |
899 | #endif /* wxUSE_DYNLIB_CLASS */ | |
900 | ||
a5d46b73 VZ |
901 | /* the rest of the tests is for the GUI settings only */ |
902 | #if wxUSE_GUI | |
903 | ||
1e6feb95 VZ |
904 | #if wxUSE_BUTTON || \ |
905 | wxUSE_CALENDARCTRL || \ | |
906 | wxUSE_CARET || \ | |
907 | wxUSE_COMBOBOX || \ | |
908 | wxUSE_BMPBUTTON || \ | |
909 | wxUSE_CHECKBOX || \ | |
910 | wxUSE_CHECKLISTBOX || \ | |
911 | wxUSE_CHOICE || \ | |
912 | wxUSE_GAUGE || \ | |
913 | wxUSE_GRID || \ | |
1e6feb95 VZ |
914 | wxUSE_LISTBOX || \ |
915 | wxUSE_LISTCTRL || \ | |
916 | wxUSE_NOTEBOOK || \ | |
917 | wxUSE_RADIOBOX || \ | |
918 | wxUSE_RADIOBTN || \ | |
919 | wxUSE_SCROLLBAR || \ | |
920 | wxUSE_SLIDER || \ | |
921 | wxUSE_SPINBTN || \ | |
922 | wxUSE_SPINCTRL || \ | |
923 | wxUSE_STATBMP || \ | |
924 | wxUSE_STATBOX || \ | |
925 | wxUSE_STATLINE || \ | |
3379ed37 | 926 | wxUSE_STATTEXT || \ |
1e6feb95 VZ |
927 | wxUSE_STATUSBAR || \ |
928 | wxUSE_TEXTCTRL || \ | |
929 | wxUSE_TOOLBAR || \ | |
930 | wxUSE_TREECTRL | |
931 | # if !wxUSE_CONTROLS | |
932 | # ifdef wxABORT_ON_CONFIG_ERROR | |
933 | # error "wxUSE_CONTROLS unset but some controls used" | |
934 | # else | |
935 | # undef wxUSE_CONTROLS | |
936 | # define wxUSE_CONTROLS 1 | |
937 | # endif | |
938 | # endif | |
939 | #endif /* controls */ | |
940 | ||
5b5e4f32 | 941 | #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK |
15aad3b9 VZ |
942 | # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL |
943 | # ifdef wxABORT_ON_CONFIG_ERROR | |
944 | # error "wxUSE_BOOKCTRL must be set." | |
945 | # else | |
946 | # undef wxUSE_BOOKCTRL | |
947 | # endif | |
948 | # endif | |
949 | ||
950 | # ifndef wxUSE_BOOKCTRL | |
951 | # define wxUSE_BOOKCTRL 1 | |
952 | # endif | |
953 | #endif /* wxUSE_NOTEBOOK */ | |
954 | ||
5b5e4f32 VZ |
955 | #if wxUSE_LISTBOOK |
956 | # if !wxUSE_LISTCTRL | |
957 | # ifdef wxABORT_ON_CONFIG_ERROR | |
958 | # error "wxListbook requires wxListCtrl" | |
959 | # else | |
960 | # undef wxUSE_LISTCTRL | |
961 | # define wxUSE_LISTCTRL 1 | |
962 | # endif | |
963 | # endif | |
964 | #endif /* wxUSE_LISTBOOK */ | |
965 | ||
3379ed37 VZ |
966 | /* wxUniv-specific dependencies */ |
967 | #if defined(__WXUNIVERSAL__) | |
968 | # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN | |
969 | # ifdef wxABORT_ON_CONFIG_ERROR | |
970 | # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus" | |
971 | # else | |
972 | # undef wxUSE_POPUPWIN | |
973 | # define wxUSE_POPUPWIN 1 | |
974 | # endif | |
975 | # endif | |
976 | ||
977 | # if wxUSE_COMBOBOX | |
978 | # if !wxUSE_LISTBOX | |
979 | # ifdef wxABORT_ON_CONFIG_ERROR | |
980 | # error "wxComboBox requires wxListBox in wxUniversal" | |
981 | # else | |
982 | # undef wxUSE_LISTBOX | |
983 | # define wxUSE_LISTBOX 1 | |
984 | # endif | |
985 | # endif | |
986 | # endif /* wxUSE_COMBOBOX */ | |
987 | ||
988 | # if wxUSE_RADIOBTN | |
989 | # if !wxUSE_CHECKBOX | |
990 | # ifdef wxABORT_ON_CONFIG_ERROR | |
991 | # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" | |
992 | # else | |
993 | # undef wxUSE_CHECKBOX | |
994 | # define wxUSE_CHECKBOX 1 | |
995 | # endif | |
996 | # endif | |
997 | # endif /* wxUSE_RADIOBTN */ | |
998 | ||
999 | # if wxUSE_TEXTCTRL | |
1000 | # if !wxUSE_CARET | |
1001 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1002 | # error "wxTextCtrl requires wxCaret in wxUniversal" | |
1003 | # else | |
1004 | # undef wxUSE_CARET | |
1005 | # define wxUSE_CARET 1 | |
1006 | # endif | |
1007 | # endif /* wxUSE_CARET */ | |
1008 | ||
1009 | # if !wxUSE_SCROLLBAR | |
1010 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1011 | # error "wxTextCtrl requires wxScrollBar in wxUniversal" | |
1012 | # else | |
1013 | # undef wxUSE_SCROLLBAR | |
1014 | # define wxUSE_SCROLLBAR 1 | |
1015 | # endif | |
1016 | # endif /* wxUSE_SCROLLBAR */ | |
1017 | # endif /* wxUSE_TEXTCTRL */ | |
1018 | #endif /* __WXUNIVERSAL__ */ | |
1019 | ||
1020 | /* wxGTK-specific dependencies */ | |
2131b89d VZ |
1021 | #ifdef __WXGTK__ |
1022 | # ifndef __WXUNIVERSAL__ | |
1023 | # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS | |
1024 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1025 | # error "MDI requires wxUSE_MENUS in wxGTK" | |
1026 | # else | |
1027 | # undef wxUSE_MENUS | |
1028 | # define wxUSE_MENUS 1 | |
1029 | # endif | |
1030 | # endif | |
1031 | # endif /* !__WXUNIVERSAL__ */ | |
1032 | ||
1033 | # if wxUSE_JOYSTICK | |
1034 | # if !wxUSE_THREADS | |
1035 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1036 | # error "wxJoystick requires threads in wxGTK" | |
1037 | # else | |
1038 | # undef wxUSE_JOYSTICK | |
1039 | # define wxUSE_JOYSTICK 0 | |
1040 | # endif | |
3379ed37 VZ |
1041 | # endif |
1042 | # endif | |
1043 | #endif /* wxGTK && !wxUniv */ | |
1044 | ||
03169422 RL |
1045 | /* wxMSW-specific dependencies */ |
1046 | #ifdef __WXMSW__ | |
1047 | # ifndef wxUSE_UNICODE_MSLU | |
1048 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1049 | # error "wxUSE_UNICODE_MSLU must be defined." | |
1050 | # else | |
1051 | # define wxUSE_UNICODE_MSLU 0 | |
1052 | # endif | |
1053 | # endif /* wxUSE_UNICODE_MSLU */ | |
9c7f7573 VS |
1054 | # ifndef wxUSE_UXTHEME |
1055 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1056 | # error "wxUSE_UXTHEME must be defined." | |
1057 | # else | |
1058 | # define wxUSE_UXTHEME 0 | |
1059 | # endif | |
1060 | # endif /* wxUSE_UXTHEME */ | |
1061 | # ifndef wxUSE_UXTHEME_AUTO | |
1062 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1063 | # error "wxUSE_UXTHEME_AUTO must be defined." | |
1064 | # else | |
1065 | # define wxUSE_UXTHEME_AUTO 0 | |
1066 | # endif | |
1067 | # endif /* wxUSE_UXTHEME_AUTO */ | |
03169422 RL |
1068 | # ifndef wxUSE_MS_HTML_HELP |
1069 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1070 | # error "wxUSE_MS_HTML_HELP must be defined." | |
1071 | # else | |
1072 | # define wxUSE_MS_HTML_HELP 0 | |
1073 | # endif | |
1074 | # endif /* !defined(wxUSE_MS_HTML_HELP) */ | |
1075 | # ifndef wxUSE_DIALUP_MANAGER | |
1076 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1077 | # error "wxUSE_DIALUP_MANAGER must be defined." | |
1078 | # else | |
1079 | # define wxUSE_DIALUP_MANAGER 0 | |
1080 | # endif | |
1081 | # endif /* !defined(wxUSE_DIALUP_MANAGER) */ | |
1082 | ||
19f478fd | 1083 | # if !wxUSE_DYNAMIC_LOADER |
03169422 RL |
1084 | # if wxUSE_MS_HTML_HELP |
1085 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1086 | # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER." | |
1087 | # else | |
1088 | # define wxUSE_DYNAMIC_LOADER 1 | |
1089 | # endif | |
1090 | # endif | |
1091 | # if wxUSE_DIALUP_MANAGER | |
1092 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1093 | # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER." | |
1094 | # else | |
1095 | # define wxUSE_DYNAMIC_LOADER 1 | |
1096 | # endif | |
1097 | # endif | |
1098 | # endif /* wxUSE_DYNAMIC_LOADER */ | |
1099 | #endif /* wxMSW */ | |
1100 | ||
c4e41ce3 SC |
1101 | /* wxMAC-specific dependencies */ |
1102 | #ifdef __WXMAC__ | |
1103 | # if wxUSE_UNICODE | |
1104 | # if !TARGET_CARBON | |
1105 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1106 | # error "wxUSE_UNICODE is only supported for Carbon Targets." | |
1107 | # else | |
1108 | # define wxUSE_UNICODE 0 | |
1109 | # endif | |
1110 | # endif | |
1111 | # endif | |
1112 | #endif /* wxMAC */ | |
9806a47c JS |
1113 | /* wxMotif-specific dependencies */ |
1114 | #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG | |
1115 | # undef wxUSE_TAB_DIALOG | |
1116 | # define wxUSE_TAB_DIALOG 1 | |
1117 | #endif | |
9806a47c | 1118 | |
bfc4a1c1 VS |
1119 | /* wxMGL-specific dependencies */ |
1120 | #ifdef __WXMGL__ | |
1121 | # if !wxUSE_PALETTE | |
1122 | # error "wxMGL requires wxUSE_PALETTE=1" | |
1123 | # endif | |
1124 | #endif /* wxMGL */ | |
1125 | ||
67e489c5 | 1126 | /* Hopefully we can emulate these dialogs in due course */ |
b92203a8 VZ |
1127 | #if wxUSE_SMARTPHONE |
1128 | # ifdef wxUSE_COLOURDLG | |
1129 | # undef wxUSE_COLOURDLG | |
1130 | # define wxUSE_COLOURDLG 0 | |
1131 | # endif | |
1132 | #endif /* wxUSE_SMARTPHONE */ | |
1133 | ||
1134 | ||
3379ed37 VZ |
1135 | /* generic controls dependencies */ |
1136 | #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) | |
1137 | # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG | |
1138 | /* all common controls are needed by these dialogs */ | |
1139 | # if !defined(wxUSE_CHOICE) || \ | |
1140 | !defined(wxUSE_TEXTCTRL) || \ | |
1141 | !defined(wxUSE_BUTTON) || \ | |
1142 | !defined(wxUSE_CHECKBOX) || \ | |
1143 | !defined(wxUSE_STATTEXT) | |
1144 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1145 | # error "These common controls are needed by common dialogs" | |
1146 | # else | |
1147 | # undef wxUSE_CHOICE | |
1148 | # define wxUSE_CHOICE 1 | |
1149 | # undef wxUSE_TEXTCTRL | |
1150 | # define wxUSE_TEXTCTRL 1 | |
1151 | # undef wxUSE_BUTTON | |
1152 | # define wxUSE_BUTTON 1 | |
1153 | # undef wxUSE_CHECKBOX | |
1154 | # define wxUSE_CHECKBOX 1 | |
1155 | # undef wxUSE_STATTEXT | |
1156 | # define wxUSE_STATTEXT 1 | |
1157 | # endif | |
1158 | # endif | |
1159 | # endif | |
1160 | #endif /* !wxMSW || wxUniv */ | |
1161 | ||
1162 | /* common dependencies */ | |
1e6feb95 VZ |
1163 | #if wxUSE_CALENDARCTRL |
1164 | # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX) | |
1165 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1166 | # error "wxCalendarCtrl requires wxSpinButton and wxComboBox" | |
1167 | # else | |
1168 | # undef wxUSE_SPINBTN | |
1169 | # undef wxUSE_COMBOBOX | |
1170 | # define wxUSE_SPINBTN 1 | |
1171 | # define wxUSE_COMBOBOX 1 | |
1172 | # endif | |
1173 | # endif | |
e2b87f38 VZ |
1174 | |
1175 | # if !wxUSE_DATETIME | |
1176 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1177 | # error "wxCalendarCtrl requires wxUSE_DATETIME" | |
1178 | # else | |
1179 | # undef wxUSE_DATETIME | |
1180 | # define wxUSE_DATETIME 1 | |
1181 | # endif | |
1182 | # endif | |
1e6feb95 VZ |
1183 | #endif /* wxUSE_CALENDARCTRL */ |
1184 | ||
1185 | #if wxUSE_CHECKLISTBOX | |
1186 | # if !wxUSE_LISTBOX | |
1187 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1188 | # error "wxCheckListBox requires wxListBox" | |
1189 | # else | |
1190 | # undef wxUSE_LISTBOX | |
1191 | # define wxUSE_LISTBOX 1 | |
1192 | # endif | |
1193 | # endif | |
1194 | #endif /* wxUSE_RADIOBTN */ | |
1195 | ||
3379ed37 | 1196 | #if wxUSE_WXHTML_HELP |
730dfeb4 | 1197 | # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK |
3379ed37 VZ |
1198 | # ifdef wxABORT_ON_CONFIG_ERROR |
1199 | # error "Built in help controller can't be compiled" | |
1200 | # else | |
1201 | # undef wxUSE_HELP | |
1202 | # define wxUSE_HELP 1 | |
1203 | # undef wxUSE_HTML | |
1204 | # define wxUSE_HTML 1 | |
1205 | # undef wxUSE_COMBOBOX | |
1206 | # define wxUSE_COMBOBOX 1 | |
730dfeb4 VS |
1207 | # undef wxUSE_NOTEBOOK |
1208 | # define wxUSE_NOTEBOOK 1 | |
3379ed37 VZ |
1209 | # endif |
1210 | # endif | |
1211 | #endif /* wxUSE_WXHTML_HELP */ | |
1212 | ||
05e4fd64 DS |
1213 | #if !wxUSE_IMAGE |
1214 | /* | |
1215 | The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the | |
1216 | user explicitly wants this and disable all other features that require | |
1217 | wxUSE_IMAGE. | |
1218 | */ | |
1219 | # if wxUSE_DRAGIMAGE | |
1220 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1221 | # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE" | |
1222 | # else | |
1223 | # undef wxUSE_DRAGIMAGE | |
1224 | # define wxUSE_DRAGIMAGE 0 | |
1225 | # endif | |
1226 | # endif | |
1227 | ||
1228 | # if wxUSE_LIBPNG | |
1229 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1230 | # error "wxUSE_LIBPNG requires wxUSE_IMAGE" | |
1231 | # else | |
1232 | # undef wxUSE_LIBPNG | |
1233 | # define wxUSE_LIBPNG 0 | |
1234 | # endif | |
1235 | # endif | |
1236 | ||
1237 | # if wxUSE_LIBJPEG | |
1238 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1239 | # error "wxUSE_LIBJPEG requires wxUSE_IMAGE" | |
1240 | # else | |
1241 | # undef wxUSE_LIBJPEG | |
1242 | # define wxUSE_LIBJPEG 0 | |
1243 | # endif | |
1244 | # endif | |
1245 | ||
1246 | # if wxUSE_LIBTIFF | |
1247 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1248 | # error "wxUSE_LIBTIFF requires wxUSE_IMAGE" | |
1249 | # else | |
1250 | # undef wxUSE_LIBTIFF | |
1251 | # define wxUSE_LIBTIFF 0 | |
1252 | # endif | |
1253 | # endif | |
1254 | ||
1255 | # if wxUSE_GIF | |
1256 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1257 | # error "wxUSE_GIF requires wxUSE_IMAGE" | |
1258 | # else | |
1259 | # undef wxUSE_GIF | |
1260 | # define wxUSE_GIF 0 | |
1261 | # endif | |
1262 | # endif | |
1263 | ||
1264 | # if wxUSE_PNM | |
1265 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1266 | # error "wxUSE_PNM requires wxUSE_IMAGE" | |
1267 | # else | |
1268 | # undef wxUSE_PNM | |
1269 | # define wxUSE_PNM 0 | |
1270 | # endif | |
1271 | # endif | |
1272 | ||
1273 | # if wxUSE_PCX | |
1274 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1275 | # error "wxUSE_PCX requires wxUSE_IMAGE" | |
1276 | # else | |
1277 | # undef wxUSE_PCX | |
1278 | # define wxUSE_PCX 0 | |
1279 | # endif | |
1280 | # endif | |
1281 | ||
1282 | # if wxUSE_IFF | |
1283 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1284 | # error "wxUSE_IFF requires wxUSE_IMAGE" | |
1285 | # else | |
1286 | # undef wxUSE_IFF | |
1287 | # define wxUSE_IFF 0 | |
1288 | # endif | |
1289 | # endif | |
1290 | ||
1291 | # if wxUSE_TOOLBAR | |
1292 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1293 | # error "wxUSE_TOOLBAR requires wxUSE_IMAGE" | |
1294 | # else | |
1295 | # undef wxUSE_TOOLBAR | |
1296 | # define wxUSE_TOOLBAR 0 | |
1297 | # endif | |
1298 | # endif | |
1299 | ||
1300 | # if wxUSE_XPM | |
1301 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1302 | # error "wxUSE_XPM requires wxUSE_IMAGE" | |
1303 | # else | |
1304 | # undef wxUSE_XPM | |
1305 | # define wxUSE_XPM 0 | |
1306 | # endif | |
1307 | # endif | |
1308 | ||
1309 | #endif /* !wxUSE_IMAGE */ | |
1310 | ||
e30285ab VZ |
1311 | #if wxUSE_DOC_VIEW_ARCHITECTURE |
1312 | # if !wxUSE_MENUS | |
1313 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1314 | # error "DocView requires wxUSE_MENUS" | |
1315 | # else | |
1316 | # undef wxUSE_MENUS | |
1317 | # define wxUSE_MENUS 1 | |
1318 | # endif | |
1319 | # endif | |
1320 | ||
1321 | # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM | |
1322 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1323 | # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM" | |
1324 | # else | |
1325 | # undef wxUSE_STREAMS | |
1326 | # define wxUSE_STREAMS 1 | |
1327 | # endif | |
1328 | # endif | |
1329 | #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */ | |
1330 | ||
3379ed37 VZ |
1331 | #if wxUSE_PRINTING_ARCHITECTURE |
1332 | # if !wxUSE_COMBOBOX | |
1333 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1334 | # error "Print dialog requires wxUSE_COMBOBOX" | |
1335 | # else | |
1336 | # undef wxUSE_COMBOBOX | |
1337 | # define wxUSE_COMBOBOX 1 | |
1338 | # endif | |
1339 | # endif | |
1340 | #endif /* wxUSE_PRINTING_ARCHITECTURE */ | |
1341 | ||
e30285ab VZ |
1342 | #if wxUSE_MDI_ARCHITECTURE |
1343 | # if !wxUSE_DOC_VIEW_ARCHITECTURE | |
1e6feb95 | 1344 | # ifdef wxABORT_ON_CONFIG_ERROR |
e30285ab | 1345 | # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE" |
1e6feb95 | 1346 | # else |
e30285ab VZ |
1347 | # undef wxUSE_DOC_VIEW_ARCHITECTURE |
1348 | # define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
1e6feb95 VZ |
1349 | # endif |
1350 | # endif | |
e30285ab | 1351 | #endif /* wxUSE_MDI_ARCHITECTURE */ |
1e6feb95 VZ |
1352 | |
1353 | #if !wxUSE_FILEDLG | |
2119e280 | 1354 | # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP |
1e6feb95 VZ |
1355 | # ifdef wxABORT_ON_CONFIG_ERROR |
1356 | # error "wxFileDialog must be compiled as well" | |
1357 | # else | |
1358 | # undef wxUSE_FILEDLG | |
1359 | # define wxUSE_FILEDLG 1 | |
1360 | # endif | |
1361 | # endif | |
e421922f | 1362 | #endif /* wxUSE_FILEDLG */ |
1e6feb95 | 1363 | |
12491c1f JS |
1364 | #if !wxUSE_TOOLBAR |
1365 | # if wxUSE_TOOLBAR_NATIVE | |
1366 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1367 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1" | |
1368 | # else | |
1369 | # undef wxUSE_TOOLBAR_NATIVE | |
1370 | # define wxUSE_TOOLBAR_NATIVE 0 | |
1371 | # endif | |
1372 | # endif | |
1373 | ||
1374 | # if wxUSE_TOOLBAR_SIMPLE | |
1375 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1376 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1" | |
1377 | # else | |
1378 | # undef wxUSE_TOOLBAR_SIMPLE | |
1379 | # define wxUSE_TOOLBAR_SIMPLE 0 | |
1380 | # endif | |
1381 | # endif | |
1382 | #endif | |
1383 | ||
1e6feb95 VZ |
1384 | #if !wxUSE_IMAGLIST |
1385 | # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL | |
1386 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1387 | # error "wxImageList must be compiled as well" | |
1388 | # else | |
1389 | # undef wxUSE_IMAGLIST | |
1390 | # define wxUSE_IMAGLIST 1 | |
1391 | # endif | |
1392 | # endif | |
1393 | #endif /* !wxUSE_IMAGLIST */ | |
1394 | ||
e421922f VZ |
1395 | #if !wxUSE_MSGDLG |
1396 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1397 | /* FIXME: should compile without it, of course, but doesn't */ | |
1398 | # error "wxMessageBox is always needed" | |
1399 | # else | |
1400 | # undef wxUSE_MSGDLG | |
1401 | # define wxUSE_MSGDLG 1 | |
1402 | # endif | |
1403 | #endif | |
1404 | ||
1e6feb95 VZ |
1405 | #if wxUSE_RADIOBOX |
1406 | # if !wxUSE_RADIOBTN || !wxUSE_STATBOX | |
1407 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1408 | # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX" | |
1409 | # else | |
1410 | # undef wxUSE_RADIOBTN | |
1411 | # undef wxUSE_STATBOX | |
1412 | # define wxUSE_RADIOBTN 1 | |
1413 | # define wxUSE_STATBOX 1 | |
1414 | # endif | |
1415 | # endif | |
1416 | #endif /* wxUSE_RADIOBOX */ | |
1417 | ||
3379ed37 VZ |
1418 | #if wxUSE_LOGWINDOW |
1419 | # if !wxUSE_TEXTCTRL | |
1420 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1421 | # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL" | |
1422 | # else | |
1423 | # undef wxUSE_TEXTCTRL | |
1424 | # define wxUSE_TEXTCTRL 1 | |
1425 | # endif | |
1426 | # endif | |
1427 | #endif /* wxUSE_LOGWINDOW */ | |
1e6feb95 | 1428 | |
3e6e2754 JS |
1429 | #if wxUSE_LOG_DIALOG |
1430 | # if !wxUSE_LISTCTRL | |
1431 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1432 | # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL" | |
1433 | # else | |
1434 | # undef wxUSE_LISTCTRL | |
1435 | # define wxUSE_LISTCTRL 1 | |
1436 | # endif | |
1437 | # endif | |
1438 | #endif /* wxUSE_LOG_DIALOG */ | |
1439 | ||
1e6feb95 VZ |
1440 | /* I wonder if we shouldn't just remove all occurrences of |
1441 | wxUSE_DYNAMIC_CLASSES from the sources? */ | |
1442 | #if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES | |
3379ed37 | 1443 | # ifdef wxABORT_ON_CONFIG_ERROR |
1e6feb95 VZ |
1444 | # error "wxUSE_DYNAMIC_CLASSES must be defined as 1" |
1445 | # else | |
1446 | # undef wxUSE_DYNAMIC_CLASSES | |
03169422 | 1447 | # define wxUSE_DYNAMIC_CLASSES 1 |
1e6feb95 VZ |
1448 | # endif |
1449 | #endif /* wxUSE_DYNAMIC_CLASSES */ | |
1450 | ||
1e6feb95 | 1451 | #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ |
3379ed37 | 1452 | # ifdef wxABORT_ON_CONFIG_ERROR |
1e6feb95 VZ |
1453 | # error "wxClipboard requires wxDataObject" |
1454 | # else | |
1455 | # undef wxUSE_DATAOBJ | |
1456 | # define wxUSE_DATAOBJ 1 | |
1457 | # endif | |
1458 | #endif /* wxUSE_CLIPBOARD */ | |
1459 | ||
2b5f62a0 VZ |
1460 | #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO |
1461 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1462 | # error "wxr resources require PrologIO" | |
1463 | # else | |
1464 | # undef wxUSE_PROLOGIO | |
1465 | # define wxUSE_PROLOGIO 1 | |
1466 | # endif | |
1467 | #endif /* wxUSE_WX_RESOURCES */ | |
1468 | ||
1e6feb95 VZ |
1469 | #endif /* wxUSE_GUI */ |
1470 |