]>
Commit | Line | Data |
---|---|---|
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@wxwidgets.org> | |
9 | * Licence: wxWindows licence | |
10 | */ | |
11 | ||
12 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ | |
13 | ||
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 | ||
24 | /* | |
25 | this global setting determines what should we do if the setting FOO | |
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 | |
28 | developers only) | |
29 | */ | |
30 | #define wxABORT_ON_CONFIG_ERROR | |
31 | ||
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 | ||
41 | /* | |
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 | ||
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 | ||
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 | ||
69 | /* don't give an error about this one yet, it's not fully implemented */ | |
70 | #ifndef wxUSE_FSVOLUME | |
71 | # define wxUSE_FSVOLUME 0 | |
72 | #endif /* !defined(wxUSE_FSVOLUME) */ | |
73 | ||
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 | ||
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 | ||
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 | ||
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 | ||
220 | /* | |
221 | all these tests are for GUI only | |
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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 | ||
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) */ | |
490 | ||
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 | |
497 | #endif /* !defined(wxUSE_LOG_DIALOG) */ | |
498 | ||
499 | #ifndef wxUSE_MDI | |
500 | # ifdef wxABORT_ON_CONFIG_ERROR | |
501 | # error "wxUSE_MDI must be defined." | |
502 | # else | |
503 | # define wxUSE_MDI 0 | |
504 | # endif | |
505 | #endif /* !defined(wxUSE_MDI) */ | |
506 | ||
507 | #ifndef wxUSE_MDI_ARCHITECTURE | |
508 | # ifdef wxABORT_ON_CONFIG_ERROR | |
509 | # error "wxUSE_MDI_ARCHITECTURE must be defined." | |
510 | # else | |
511 | # define wxUSE_MDI_ARCHITECTURE 0 | |
512 | # endif | |
513 | #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */ | |
514 | ||
515 | #ifndef wxUSE_MENUS | |
516 | # ifdef wxABORT_ON_CONFIG_ERROR | |
517 | # error "wxUSE_MENUS must be defined." | |
518 | # else | |
519 | # define wxUSE_MENUS 0 | |
520 | # endif | |
521 | #endif /* !defined(wxUSE_MENUS) */ | |
522 | ||
523 | #ifndef wxUSE_MSGDLG | |
524 | # ifdef wxABORT_ON_CONFIG_ERROR | |
525 | # error "wxUSE_MSGDLG must be defined." | |
526 | # else | |
527 | # define wxUSE_MSGDLG 0 | |
528 | # endif | |
529 | #endif /* !defined(wxUSE_MSGDLG) */ | |
530 | ||
531 | #ifndef wxUSE_NOTEBOOK | |
532 | # ifdef wxABORT_ON_CONFIG_ERROR | |
533 | # error "wxUSE_NOTEBOOK must be defined." | |
534 | # else | |
535 | # define wxUSE_NOTEBOOK 0 | |
536 | # endif | |
537 | #endif /* !defined(wxUSE_NOTEBOOK) */ | |
538 | ||
539 | #ifndef wxUSE_PALETTE | |
540 | # ifdef wxABORT_ON_CONFIG_ERROR | |
541 | # error "wxUSE_PALETTE must be defined." | |
542 | # else | |
543 | # define wxUSE_PALETTE 0 | |
544 | # endif | |
545 | #endif /* !defined(wxUSE_PALETTE) */ | |
546 | ||
547 | #ifndef wxUSE_POPUPWIN | |
548 | # ifdef wxABORT_ON_CONFIG_ERROR | |
549 | # error "wxUSE_POPUPWIN must be defined." | |
550 | # else | |
551 | # define wxUSE_POPUPWIN 0 | |
552 | # endif | |
553 | #endif /* !defined(wxUSE_POPUPWIN) */ | |
554 | ||
555 | #ifndef wxUSE_PRINTING_ARCHITECTURE | |
556 | # ifdef wxABORT_ON_CONFIG_ERROR | |
557 | # error "wxUSE_PRINTING_ARCHITECTURE must be defined." | |
558 | # else | |
559 | # define wxUSE_PRINTING_ARCHITECTURE 0 | |
560 | # endif | |
561 | #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */ | |
562 | ||
563 | #ifndef wxUSE_RADIOBOX | |
564 | # ifdef wxABORT_ON_CONFIG_ERROR | |
565 | # error "wxUSE_RADIOBOX must be defined." | |
566 | # else | |
567 | # define wxUSE_RADIOBOX 0 | |
568 | # endif | |
569 | #endif /* !defined(wxUSE_RADIOBOX) */ | |
570 | ||
571 | #ifndef wxUSE_RADIOBTN | |
572 | # ifdef wxABORT_ON_CONFIG_ERROR | |
573 | # error "wxUSE_RADIOBTN must be defined." | |
574 | # else | |
575 | # define wxUSE_RADIOBTN 0 | |
576 | # endif | |
577 | #endif /* !defined(wxUSE_RADIOBTN) */ | |
578 | ||
579 | #ifndef wxUSE_SASH | |
580 | # ifdef wxABORT_ON_CONFIG_ERROR | |
581 | # error "wxUSE_SASH must be defined." | |
582 | # else | |
583 | # define wxUSE_SASH 0 | |
584 | # endif | |
585 | #endif /* !defined(wxUSE_SASH) */ | |
586 | ||
587 | #ifndef wxUSE_SCROLLBAR | |
588 | # ifdef wxABORT_ON_CONFIG_ERROR | |
589 | # error "wxUSE_SCROLLBAR must be defined." | |
590 | # else | |
591 | # define wxUSE_SCROLLBAR 0 | |
592 | # endif | |
593 | #endif /* !defined(wxUSE_SCROLLBAR) */ | |
594 | ||
595 | #ifndef wxUSE_SLIDER | |
596 | # ifdef wxABORT_ON_CONFIG_ERROR | |
597 | # error "wxUSE_SLIDER must be defined." | |
598 | # else | |
599 | # define wxUSE_SLIDER 0 | |
600 | # endif | |
601 | #endif /* !defined(wxUSE_SLIDER) */ | |
602 | ||
603 | #ifndef wxUSE_SOUND | |
604 | # ifdef wxABORT_ON_CONFIG_ERROR | |
605 | # error "wxUSE_SOUND must be defined." | |
606 | # else | |
607 | # define wxUSE_SOUND 0 | |
608 | # endif | |
609 | #endif /* !defined(wxUSE_SOUND) */ | |
610 | ||
611 | #ifndef wxUSE_SPINBTN | |
612 | # ifdef wxABORT_ON_CONFIG_ERROR | |
613 | # error "wxUSE_SPINBTN must be defined." | |
614 | # else | |
615 | # define wxUSE_SPINBTN 0 | |
616 | # endif | |
617 | #endif /* !defined(wxUSE_SPINBTN) */ | |
618 | ||
619 | #ifndef wxUSE_SPINCTRL | |
620 | # ifdef wxABORT_ON_CONFIG_ERROR | |
621 | # error "wxUSE_SPINCTRL must be defined." | |
622 | # else | |
623 | # define wxUSE_SPINCTRL 0 | |
624 | # endif | |
625 | #endif /* !defined(wxUSE_SPINCTRL) */ | |
626 | ||
627 | #ifndef wxUSE_SPLASH | |
628 | # ifdef wxABORT_ON_CONFIG_ERROR | |
629 | # error "wxUSE_SPLASH must be defined." | |
630 | # else | |
631 | # define wxUSE_SPLASH 0 | |
632 | # endif | |
633 | #endif /* !defined(wxUSE_SPLASH) */ | |
634 | ||
635 | #ifndef wxUSE_SPLITTER | |
636 | # ifdef wxABORT_ON_CONFIG_ERROR | |
637 | # error "wxUSE_SPLITTER must be defined." | |
638 | # else | |
639 | # define wxUSE_SPLITTER 0 | |
640 | # endif | |
641 | #endif /* !defined(wxUSE_SPLITTER) */ | |
642 | ||
643 | #ifndef wxUSE_STATBMP | |
644 | # ifdef wxABORT_ON_CONFIG_ERROR | |
645 | # error "wxUSE_STATBMP must be defined." | |
646 | # else | |
647 | # define wxUSE_STATBMP 0 | |
648 | # endif | |
649 | #endif /* !defined(wxUSE_STATBMP) */ | |
650 | ||
651 | #ifndef wxUSE_STATBOX | |
652 | # ifdef wxABORT_ON_CONFIG_ERROR | |
653 | # error "wxUSE_STATBOX must be defined." | |
654 | # else | |
655 | # define wxUSE_STATBOX 0 | |
656 | # endif | |
657 | #endif /* !defined(wxUSE_STATBOX) */ | |
658 | ||
659 | #ifndef wxUSE_STATLINE | |
660 | # ifdef wxABORT_ON_CONFIG_ERROR | |
661 | # error "wxUSE_STATLINE must be defined." | |
662 | # else | |
663 | # define wxUSE_STATLINE 0 | |
664 | # endif | |
665 | #endif /* !defined(wxUSE_STATLINE) */ | |
666 | ||
667 | #ifndef wxUSE_STATTEXT | |
668 | # ifdef wxABORT_ON_CONFIG_ERROR | |
669 | # error "wxUSE_STATTEXT must be defined." | |
670 | # else | |
671 | # define wxUSE_STATTEXT 0 | |
672 | # endif | |
673 | #endif /* !defined(wxUSE_STATTEXT) */ | |
674 | ||
675 | #ifndef wxUSE_STATUSBAR | |
676 | # ifdef wxABORT_ON_CONFIG_ERROR | |
677 | # error "wxUSE_STATUSBAR must be defined." | |
678 | # else | |
679 | # define wxUSE_STATUSBAR 0 | |
680 | # endif | |
681 | #endif /* !defined(wxUSE_STATUSBAR) */ | |
682 | ||
683 | #ifndef wxUSE_TAB_DIALOG | |
684 | # ifdef wxABORT_ON_CONFIG_ERROR | |
685 | # error "wxUSE_TAB_DIALOG must be defined." | |
686 | # else | |
687 | # define wxUSE_TAB_DIALOG 0 | |
688 | # endif | |
689 | #endif /* !defined(wxUSE_TAB_DIALOG) */ | |
690 | ||
691 | #ifndef wxUSE_TEXTCTRL | |
692 | # ifdef wxABORT_ON_CONFIG_ERROR | |
693 | # error "wxUSE_TEXTCTRL must be defined." | |
694 | # else | |
695 | # define wxUSE_TEXTCTRL 0 | |
696 | # endif | |
697 | #endif /* !defined(wxUSE_TEXTCTRL) */ | |
698 | ||
699 | #ifndef wxUSE_TIPWINDOW | |
700 | # ifdef wxABORT_ON_CONFIG_ERROR | |
701 | # error "wxUSE_TIPWINDOW must be defined." | |
702 | # else | |
703 | # define wxUSE_TIPWINDOW 0 | |
704 | # endif | |
705 | #endif /* !defined(wxUSE_TIPWINDOW) */ | |
706 | ||
707 | #ifndef wxUSE_TOOLBAR | |
708 | # ifdef wxABORT_ON_CONFIG_ERROR | |
709 | # error "wxUSE_TOOLBAR must be defined." | |
710 | # else | |
711 | # define wxUSE_TOOLBAR 0 | |
712 | # endif | |
713 | #endif /* !defined(wxUSE_TOOLBAR) */ | |
714 | ||
715 | #ifndef wxUSE_TOOLTIPS | |
716 | # ifdef wxABORT_ON_CONFIG_ERROR | |
717 | # error "wxUSE_TOOLTIPS must be defined." | |
718 | # else | |
719 | # define wxUSE_TOOLTIPS 0 | |
720 | # endif | |
721 | #endif /* !defined(wxUSE_TOOLTIPS) */ | |
722 | ||
723 | #ifndef wxUSE_TREECTRL | |
724 | # ifdef wxABORT_ON_CONFIG_ERROR | |
725 | # error "wxUSE_TREECTRL must be defined." | |
726 | # else | |
727 | # define wxUSE_TREECTRL 0 | |
728 | # endif | |
729 | #endif /* !defined(wxUSE_TREECTRL) */ | |
730 | ||
731 | #ifndef wxUSE_VALIDATORS | |
732 | # ifdef wxABORT_ON_CONFIG_ERROR | |
733 | # error "wxUSE_VALIDATORS must be defined." | |
734 | # else | |
735 | # define wxUSE_VALIDATORS 0 | |
736 | # endif | |
737 | #endif /* !defined(wxUSE_VALIDATORS) */ | |
738 | ||
739 | #ifndef wxUSE_WXHTML_HELP | |
740 | # ifdef wxABORT_ON_CONFIG_ERROR | |
741 | # error "wxUSE_WXHTML_HELP must be defined." | |
742 | # else | |
743 | # define wxUSE_WXHTML_HELP 0 | |
744 | # endif | |
745 | #endif /* !defined(wxUSE_WXHTML_HELP) */ | |
746 | ||
747 | #endif /* wxUSE_GUI */ | |
748 | ||
749 | /* | |
750 | check consistency of the settings | |
751 | */ | |
752 | ||
753 | #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP | |
754 | # if !wxUSE_PROTOCOL | |
755 | # ifdef wxABORT_ON_CONFIG_ERROR | |
756 | # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL" | |
757 | # else | |
758 | # undef wxUSE_PROTOCOL | |
759 | # define wxUSE_PROTOCOL 1 | |
760 | # endif | |
761 | # endif | |
762 | #endif /* wxUSE_PROTOCOL_XXX */ | |
763 | ||
764 | #if wxUSE_URL | |
765 | # if !wxUSE_PROTOCOL | |
766 | # ifdef wxABORT_ON_CONFIG_ERROR | |
767 | # error "wxUSE_URL requires wxUSE_PROTOCOL" | |
768 | # else | |
769 | # undef wxUSE_PROTOCOL | |
770 | # define wxUSE_PROTOCOL 1 | |
771 | # endif | |
772 | # endif | |
773 | #endif /* wxUSE_URL */ | |
774 | ||
775 | #if wxUSE_PROTOCOL | |
776 | # if !wxUSE_SOCKETS | |
777 | # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP | |
778 | # ifdef wxABORT_ON_CONFIG_ERROR | |
779 | # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS" | |
780 | # else | |
781 | # undef wxUSE_SOCKETS | |
782 | # define wxUSE_SOCKETS 1 | |
783 | # endif | |
784 | # endif | |
785 | # endif | |
786 | ||
787 | # if !wxUSE_STREAMS | |
788 | # ifdef wxABORT_ON_CONFIG_ERROR | |
789 | # error "wxUSE_PROTOCOL requires wxUSE_STREAMS" | |
790 | # else | |
791 | # undef wxUSE_STREAMS | |
792 | # define wxUSE_STREAMS 1 | |
793 | # endif | |
794 | # endif | |
795 | #endif /* wxUSE_PROTOCOL */ | |
796 | ||
797 | /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */ | |
798 | #if wxUSE_HTML | |
799 | # if !wxUSE_FILESYSTEM | |
800 | # ifdef wxABORT_ON_CONFIG_ERROR | |
801 | # error "wxHTML requires wxFileSystem" | |
802 | # else | |
803 | # undef wxUSE_FILESYSTEM | |
804 | # define wxUSE_FILESYSTEM 1 | |
805 | # endif | |
806 | # endif | |
807 | #endif /* wxUSE_HTML */ | |
808 | ||
809 | #if wxUSE_FILESYSTEM | |
810 | # if !wxUSE_STREAMS | |
811 | # ifdef wxABORT_ON_CONFIG_ERROR | |
812 | # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS" | |
813 | # else | |
814 | # undef wxUSE_STREAMS | |
815 | # define wxUSE_STREAMS 1 | |
816 | # endif | |
817 | # endif | |
818 | #endif /* wxUSE_FILESYSTEM */ | |
819 | ||
820 | #if wxUSE_FS_INET | |
821 | # if !wxUSE_PROTOCOL | |
822 | # ifdef wxABORT_ON_CONFIG_ERROR | |
823 | # error "wxUSE_FS_INET requires wxUSE_PROTOCOL" | |
824 | # else | |
825 | # undef wxUSE_PROTOCOL | |
826 | # define wxUSE_PROTOCOL 1 | |
827 | # endif | |
828 | # endif | |
829 | #endif /* wxUSE_FS_INET */ | |
830 | ||
831 | #if wxUSE_STOPWATCH || wxUSE_DATETIME | |
832 | # if !wxUSE_LONGLONG | |
833 | # ifdef wxABORT_ON_CONFIG_ERROR | |
834 | # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG" | |
835 | # else | |
836 | # undef wxUSE_LONGLONG | |
837 | # define wxUSE_LONGLONG 1 | |
838 | # endif | |
839 | # endif | |
840 | #endif /* wxUSE_STOPWATCH */ | |
841 | ||
842 | #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE | |
843 | # ifdef wxABORT_ON_CONFIG_ERROR | |
844 | # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE" | |
845 | # else | |
846 | # undef wxUSE_TEXTFILE | |
847 | # define wxUSE_TEXTFILE 1 | |
848 | # endif | |
849 | #endif /* wxUSE_MIMETYPE */ | |
850 | ||
851 | #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER | |
852 | # ifdef wxABORT_ON_CONFIG_ERROR | |
853 | # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER" | |
854 | # else | |
855 | # undef wxUSE_TEXTBUFFER | |
856 | # define wxUSE_TEXTBUFFER 1 | |
857 | # endif | |
858 | #endif /* wxUSE_TEXTFILE */ | |
859 | ||
860 | #if wxUSE_TEXTFILE && !wxUSE_FILE | |
861 | # ifdef wxABORT_ON_CONFIG_ERROR | |
862 | # error "wxUSE_TEXTFILE requires wxUSE_FILE" | |
863 | # else | |
864 | # undef wxUSE_FILE | |
865 | # define wxUSE_FILE 1 | |
866 | # endif | |
867 | #endif /* wxUSE_TEXTFILE */ | |
868 | ||
869 | #if wxUSE_UNICODE_MSLU && !wxUSE_UNICODE | |
870 | # ifdef wxABORT_ON_CONFIG_ERROR | |
871 | # error "wxUSE_UNICODE_MSLU requires wxUSE_UNICODE" | |
872 | # else | |
873 | # undef wxUSE_UNICODE | |
874 | # define wxUSE_UNICODE 1 | |
875 | # endif | |
876 | #endif /* wxUSE_UNICODE_MSLU */ | |
877 | ||
878 | /* ODBC and Unicode are now compatible */ | |
879 | ||
880 | #if 0 /* wxUSE_ODBC && wxUSE_UNICODE */ | |
881 | # ifdef wxABORT_ON_CONFIG_ERROR | |
882 | /* (ODBC classes aren't Unicode-compatible yet) */ | |
883 | # error "wxUSE_ODBC can't be used with wxUSE_UNICODE" | |
884 | # else | |
885 | # undef wxUSE_ODBC | |
886 | # define wxUSE_ODBC 0 | |
887 | # endif | |
888 | #endif /* wxUSE_ODBC */ | |
889 | ||
890 | #if wxUSE_XML && !wxUSE_WCHAR_T | |
891 | # ifdef wxABORT_ON_CONFIG_ERROR | |
892 | # error "wxUSE_XML requires wxUSE_WCHAR_T" | |
893 | # else | |
894 | # undef wxUSE_XML | |
895 | # define wxUSE_XML 0 | |
896 | # endif | |
897 | #endif /* wxUSE_UNICODE_MSLU */ | |
898 | ||
899 | #if !wxUSE_DYNLIB_CLASS | |
900 | # if wxUSE_DYNAMIC_LOADER | |
901 | # ifdef wxABORT_ON_CONFIG_ERROR | |
902 | # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS." | |
903 | # else | |
904 | # define wxUSE_DYNLIB_CLASS 1 | |
905 | # endif | |
906 | # endif | |
907 | #endif /* wxUSE_DYNLIB_CLASS */ | |
908 | ||
909 | /* the rest of the tests is for the GUI settings only */ | |
910 | #if wxUSE_GUI | |
911 | ||
912 | #if wxUSE_BUTTON || \ | |
913 | wxUSE_CALENDARCTRL || \ | |
914 | wxUSE_CARET || \ | |
915 | wxUSE_COMBOBOX || \ | |
916 | wxUSE_BMPBUTTON || \ | |
917 | wxUSE_CHECKBOX || \ | |
918 | wxUSE_CHECKLISTBOX || \ | |
919 | wxUSE_CHOICE || \ | |
920 | wxUSE_GAUGE || \ | |
921 | wxUSE_GRID || \ | |
922 | wxUSE_LISTBOX || \ | |
923 | wxUSE_LISTCTRL || \ | |
924 | wxUSE_NOTEBOOK || \ | |
925 | wxUSE_RADIOBOX || \ | |
926 | wxUSE_RADIOBTN || \ | |
927 | wxUSE_SCROLLBAR || \ | |
928 | wxUSE_SLIDER || \ | |
929 | wxUSE_SPINBTN || \ | |
930 | wxUSE_SPINCTRL || \ | |
931 | wxUSE_STATBMP || \ | |
932 | wxUSE_STATBOX || \ | |
933 | wxUSE_STATLINE || \ | |
934 | wxUSE_STATTEXT || \ | |
935 | wxUSE_STATUSBAR || \ | |
936 | wxUSE_TEXTCTRL || \ | |
937 | wxUSE_TOOLBAR || \ | |
938 | wxUSE_TREECTRL | |
939 | # if !wxUSE_CONTROLS | |
940 | # ifdef wxABORT_ON_CONFIG_ERROR | |
941 | # error "wxUSE_CONTROLS unset but some controls used" | |
942 | # else | |
943 | # undef wxUSE_CONTROLS | |
944 | # define wxUSE_CONTROLS 1 | |
945 | # endif | |
946 | # endif | |
947 | #endif /* controls */ | |
948 | ||
949 | #if wxUSE_BMPBUTTON | |
950 | # if !wxUSE_BUTTON | |
951 | # ifdef wxABORT_ON_CONFIG_ERROR | |
952 | # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON" | |
953 | # else | |
954 | # undef wxUSE_BUTTON | |
955 | # define wxUSE_BUTTON 1 | |
956 | # endif | |
957 | # endif | |
958 | #endif /* wxUSE_BMPBUTTON */ | |
959 | ||
960 | #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK | |
961 | # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL | |
962 | # ifdef wxABORT_ON_CONFIG_ERROR | |
963 | # error "wxUSE_BOOKCTRL must be set." | |
964 | # else | |
965 | # undef wxUSE_BOOKCTRL | |
966 | # endif | |
967 | # endif | |
968 | ||
969 | # ifndef wxUSE_BOOKCTRL | |
970 | # define wxUSE_BOOKCTRL 1 | |
971 | # endif | |
972 | #endif /* wxUSE_NOTEBOOK */ | |
973 | ||
974 | #if wxUSE_LISTBOOK | |
975 | # if !wxUSE_LISTCTRL | |
976 | # ifdef wxABORT_ON_CONFIG_ERROR | |
977 | # error "wxListbook requires wxListCtrl" | |
978 | # else | |
979 | # undef wxUSE_LISTCTRL | |
980 | # define wxUSE_LISTCTRL 1 | |
981 | # endif | |
982 | # endif | |
983 | #endif /* wxUSE_LISTBOOK */ | |
984 | ||
985 | /* wxUniv-specific dependencies */ | |
986 | #if defined(__WXUNIVERSAL__) | |
987 | # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN | |
988 | # ifdef wxABORT_ON_CONFIG_ERROR | |
989 | # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus" | |
990 | # else | |
991 | # undef wxUSE_POPUPWIN | |
992 | # define wxUSE_POPUPWIN 1 | |
993 | # endif | |
994 | # endif | |
995 | ||
996 | # if wxUSE_COMBOBOX | |
997 | # if !wxUSE_LISTBOX | |
998 | # ifdef wxABORT_ON_CONFIG_ERROR | |
999 | # error "wxComboBox requires wxListBox in wxUniversal" | |
1000 | # else | |
1001 | # undef wxUSE_LISTBOX | |
1002 | # define wxUSE_LISTBOX 1 | |
1003 | # endif | |
1004 | # endif | |
1005 | # endif /* wxUSE_COMBOBOX */ | |
1006 | ||
1007 | # if wxUSE_RADIOBTN | |
1008 | # if !wxUSE_CHECKBOX | |
1009 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1010 | # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal" | |
1011 | # else | |
1012 | # undef wxUSE_CHECKBOX | |
1013 | # define wxUSE_CHECKBOX 1 | |
1014 | # endif | |
1015 | # endif | |
1016 | # endif /* wxUSE_RADIOBTN */ | |
1017 | ||
1018 | # if wxUSE_TEXTCTRL | |
1019 | # if !wxUSE_CARET | |
1020 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1021 | # error "wxTextCtrl requires wxCaret in wxUniversal" | |
1022 | # else | |
1023 | # undef wxUSE_CARET | |
1024 | # define wxUSE_CARET 1 | |
1025 | # endif | |
1026 | # endif /* wxUSE_CARET */ | |
1027 | ||
1028 | # if !wxUSE_SCROLLBAR | |
1029 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1030 | # error "wxTextCtrl requires wxScrollBar in wxUniversal" | |
1031 | # else | |
1032 | # undef wxUSE_SCROLLBAR | |
1033 | # define wxUSE_SCROLLBAR 1 | |
1034 | # endif | |
1035 | # endif /* wxUSE_SCROLLBAR */ | |
1036 | # endif /* wxUSE_TEXTCTRL */ | |
1037 | #endif /* __WXUNIVERSAL__ */ | |
1038 | ||
1039 | /* wxGTK-specific dependencies */ | |
1040 | #ifdef __WXGTK__ | |
1041 | # ifndef __WXUNIVERSAL__ | |
1042 | # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS | |
1043 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1044 | # error "MDI requires wxUSE_MENUS in wxGTK" | |
1045 | # else | |
1046 | # undef wxUSE_MENUS | |
1047 | # define wxUSE_MENUS 1 | |
1048 | # endif | |
1049 | # endif | |
1050 | # endif /* !__WXUNIVERSAL__ */ | |
1051 | ||
1052 | # if wxUSE_JOYSTICK | |
1053 | # if !wxUSE_THREADS | |
1054 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1055 | # error "wxJoystick requires threads in wxGTK" | |
1056 | # else | |
1057 | # undef wxUSE_JOYSTICK | |
1058 | # define wxUSE_JOYSTICK 0 | |
1059 | # endif | |
1060 | # endif | |
1061 | # endif | |
1062 | #endif /* wxGTK && !wxUniv */ | |
1063 | ||
1064 | /* wxMSW-specific dependencies */ | |
1065 | #ifdef __WXMSW__ | |
1066 | # ifndef wxUSE_UNICODE_MSLU | |
1067 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1068 | # error "wxUSE_UNICODE_MSLU must be defined." | |
1069 | # else | |
1070 | # define wxUSE_UNICODE_MSLU 0 | |
1071 | # endif | |
1072 | # endif /* wxUSE_UNICODE_MSLU */ | |
1073 | # ifndef wxUSE_UXTHEME | |
1074 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1075 | # error "wxUSE_UXTHEME must be defined." | |
1076 | # else | |
1077 | # define wxUSE_UXTHEME 0 | |
1078 | # endif | |
1079 | # endif /* wxUSE_UXTHEME */ | |
1080 | # ifndef wxUSE_UXTHEME_AUTO | |
1081 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1082 | # error "wxUSE_UXTHEME_AUTO must be defined." | |
1083 | # else | |
1084 | # define wxUSE_UXTHEME_AUTO 0 | |
1085 | # endif | |
1086 | # endif /* wxUSE_UXTHEME_AUTO */ | |
1087 | # ifndef wxUSE_MS_HTML_HELP | |
1088 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1089 | # error "wxUSE_MS_HTML_HELP must be defined." | |
1090 | # else | |
1091 | # define wxUSE_MS_HTML_HELP 0 | |
1092 | # endif | |
1093 | # endif /* !defined(wxUSE_MS_HTML_HELP) */ | |
1094 | # ifndef wxUSE_DIALUP_MANAGER | |
1095 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1096 | # error "wxUSE_DIALUP_MANAGER must be defined." | |
1097 | # else | |
1098 | # define wxUSE_DIALUP_MANAGER 0 | |
1099 | # endif | |
1100 | # endif /* !defined(wxUSE_DIALUP_MANAGER) */ | |
1101 | ||
1102 | # if !wxUSE_DYNAMIC_LOADER | |
1103 | # if wxUSE_MS_HTML_HELP | |
1104 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1105 | # error "wxUSE_MS_HTML_HELP requires wxUSE_DYNAMIC_LOADER." | |
1106 | # else | |
1107 | # define wxUSE_DYNAMIC_LOADER 1 | |
1108 | # endif | |
1109 | # endif | |
1110 | # if wxUSE_DIALUP_MANAGER | |
1111 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1112 | # error "wxUSE_DIALUP_MANAGER requires wxUSE_DYNAMIC_LOADER." | |
1113 | # else | |
1114 | # define wxUSE_DYNAMIC_LOADER 1 | |
1115 | # endif | |
1116 | # endif | |
1117 | # endif /* wxUSE_DYNAMIC_LOADER */ | |
1118 | #endif /* wxMSW */ | |
1119 | ||
1120 | /* wxMAC-specific dependencies */ | |
1121 | #ifdef __WXMAC__ | |
1122 | # if wxUSE_UNICODE | |
1123 | # if !TARGET_CARBON | |
1124 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1125 | # error "wxUSE_UNICODE is only supported for Carbon Targets." | |
1126 | # else | |
1127 | # define wxUSE_UNICODE 0 | |
1128 | # endif | |
1129 | # endif | |
1130 | # endif | |
1131 | #endif /* wxMAC */ | |
1132 | /* wxMotif-specific dependencies */ | |
1133 | #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG | |
1134 | # undef wxUSE_TAB_DIALOG | |
1135 | # define wxUSE_TAB_DIALOG 1 | |
1136 | #endif | |
1137 | ||
1138 | /* wxMGL-specific dependencies */ | |
1139 | #ifdef __WXMGL__ | |
1140 | # if !wxUSE_PALETTE | |
1141 | # error "wxMGL requires wxUSE_PALETTE=1" | |
1142 | # endif | |
1143 | #endif /* wxMGL */ | |
1144 | ||
1145 | /* Hopefully we can emulate these dialogs in due course */ | |
1146 | #ifdef __SMARTPHONE__ | |
1147 | # ifdef wxUSE_COLOURDLG | |
1148 | # undef wxUSE_COLOURDLG | |
1149 | # define wxUSE_COLOURDLG 0 | |
1150 | # endif | |
1151 | #endif /* __SMARTPHONE__ */ | |
1152 | ||
1153 | ||
1154 | /* generic controls dependencies */ | |
1155 | #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__) | |
1156 | # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG | |
1157 | /* all common controls are needed by these dialogs */ | |
1158 | # if !defined(wxUSE_CHOICE) || \ | |
1159 | !defined(wxUSE_TEXTCTRL) || \ | |
1160 | !defined(wxUSE_BUTTON) || \ | |
1161 | !defined(wxUSE_CHECKBOX) || \ | |
1162 | !defined(wxUSE_STATTEXT) | |
1163 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1164 | # error "These common controls are needed by common dialogs" | |
1165 | # else | |
1166 | # undef wxUSE_CHOICE | |
1167 | # define wxUSE_CHOICE 1 | |
1168 | # undef wxUSE_TEXTCTRL | |
1169 | # define wxUSE_TEXTCTRL 1 | |
1170 | # undef wxUSE_BUTTON | |
1171 | # define wxUSE_BUTTON 1 | |
1172 | # undef wxUSE_CHECKBOX | |
1173 | # define wxUSE_CHECKBOX 1 | |
1174 | # undef wxUSE_STATTEXT | |
1175 | # define wxUSE_STATTEXT 1 | |
1176 | # endif | |
1177 | # endif | |
1178 | # endif | |
1179 | #endif /* !wxMSW || wxUniv */ | |
1180 | ||
1181 | /* common dependencies */ | |
1182 | #if wxUSE_CALENDARCTRL | |
1183 | # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX) | |
1184 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1185 | # error "wxCalendarCtrl requires wxSpinButton and wxComboBox" | |
1186 | # else | |
1187 | # undef wxUSE_SPINBTN | |
1188 | # undef wxUSE_COMBOBOX | |
1189 | # define wxUSE_SPINBTN 1 | |
1190 | # define wxUSE_COMBOBOX 1 | |
1191 | # endif | |
1192 | # endif | |
1193 | ||
1194 | # if !wxUSE_DATETIME | |
1195 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1196 | # error "wxCalendarCtrl requires wxUSE_DATETIME" | |
1197 | # else | |
1198 | # undef wxUSE_DATETIME | |
1199 | # define wxUSE_DATETIME 1 | |
1200 | # endif | |
1201 | # endif | |
1202 | #endif /* wxUSE_CALENDARCTRL */ | |
1203 | ||
1204 | #if wxUSE_CHECKLISTBOX | |
1205 | # if !wxUSE_LISTBOX | |
1206 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1207 | # error "wxCheckListBox requires wxListBox" | |
1208 | # else | |
1209 | # undef wxUSE_LISTBOX | |
1210 | # define wxUSE_LISTBOX 1 | |
1211 | # endif | |
1212 | # endif | |
1213 | #endif /* wxUSE_RADIOBTN */ | |
1214 | ||
1215 | #if wxUSE_HELP | |
1216 | # if !wxUSE_BMPBUTTON | |
1217 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1218 | # error "wxUSE_HELP requires wxUSE_BMPBUTTON" | |
1219 | # else | |
1220 | # undef wxUSE_BMPBUTTON | |
1221 | # define wxUSE_BMPBUTTON 1 | |
1222 | # endif | |
1223 | # endif | |
1224 | ||
1225 | # if !wxUSE_CHOICEDLG | |
1226 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1227 | # error "wxUSE_HELP requires wxUSE_CHOICEDLG" | |
1228 | # else | |
1229 | # undef wxUSE_CHOICEDLG | |
1230 | # define wxUSE_CHOICEDLG 1 | |
1231 | # endif | |
1232 | # endif | |
1233 | #endif /* wxUSE_HELP */ | |
1234 | ||
1235 | #if wxUSE_WXHTML_HELP | |
1236 | # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK | |
1237 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1238 | # error "Built in help controller can't be compiled" | |
1239 | # else | |
1240 | # undef wxUSE_HELP | |
1241 | # define wxUSE_HELP 1 | |
1242 | # undef wxUSE_HTML | |
1243 | # define wxUSE_HTML 1 | |
1244 | # undef wxUSE_COMBOBOX | |
1245 | # define wxUSE_COMBOBOX 1 | |
1246 | # undef wxUSE_NOTEBOOK | |
1247 | # define wxUSE_NOTEBOOK 1 | |
1248 | # endif | |
1249 | # endif | |
1250 | #endif /* wxUSE_WXHTML_HELP */ | |
1251 | ||
1252 | #if !wxUSE_IMAGE | |
1253 | /* | |
1254 | The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the | |
1255 | user explicitly wants this and disable all other features that require | |
1256 | wxUSE_IMAGE. | |
1257 | */ | |
1258 | # if wxUSE_DRAGIMAGE | |
1259 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1260 | # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE" | |
1261 | # else | |
1262 | # undef wxUSE_DRAGIMAGE | |
1263 | # define wxUSE_DRAGIMAGE 0 | |
1264 | # endif | |
1265 | # endif | |
1266 | ||
1267 | # if wxUSE_LIBPNG | |
1268 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1269 | # error "wxUSE_LIBPNG requires wxUSE_IMAGE" | |
1270 | # else | |
1271 | # undef wxUSE_LIBPNG | |
1272 | # define wxUSE_LIBPNG 0 | |
1273 | # endif | |
1274 | # endif | |
1275 | ||
1276 | # if wxUSE_LIBJPEG | |
1277 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1278 | # error "wxUSE_LIBJPEG requires wxUSE_IMAGE" | |
1279 | # else | |
1280 | # undef wxUSE_LIBJPEG | |
1281 | # define wxUSE_LIBJPEG 0 | |
1282 | # endif | |
1283 | # endif | |
1284 | ||
1285 | # if wxUSE_LIBTIFF | |
1286 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1287 | # error "wxUSE_LIBTIFF requires wxUSE_IMAGE" | |
1288 | # else | |
1289 | # undef wxUSE_LIBTIFF | |
1290 | # define wxUSE_LIBTIFF 0 | |
1291 | # endif | |
1292 | # endif | |
1293 | ||
1294 | # if wxUSE_GIF | |
1295 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1296 | # error "wxUSE_GIF requires wxUSE_IMAGE" | |
1297 | # else | |
1298 | # undef wxUSE_GIF | |
1299 | # define wxUSE_GIF 0 | |
1300 | # endif | |
1301 | # endif | |
1302 | ||
1303 | # if wxUSE_PNM | |
1304 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1305 | # error "wxUSE_PNM requires wxUSE_IMAGE" | |
1306 | # else | |
1307 | # undef wxUSE_PNM | |
1308 | # define wxUSE_PNM 0 | |
1309 | # endif | |
1310 | # endif | |
1311 | ||
1312 | # if wxUSE_PCX | |
1313 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1314 | # error "wxUSE_PCX requires wxUSE_IMAGE" | |
1315 | # else | |
1316 | # undef wxUSE_PCX | |
1317 | # define wxUSE_PCX 0 | |
1318 | # endif | |
1319 | # endif | |
1320 | ||
1321 | # if wxUSE_IFF | |
1322 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1323 | # error "wxUSE_IFF requires wxUSE_IMAGE" | |
1324 | # else | |
1325 | # undef wxUSE_IFF | |
1326 | # define wxUSE_IFF 0 | |
1327 | # endif | |
1328 | # endif | |
1329 | ||
1330 | # if wxUSE_TOOLBAR | |
1331 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1332 | # error "wxUSE_TOOLBAR requires wxUSE_IMAGE" | |
1333 | # else | |
1334 | # undef wxUSE_TOOLBAR | |
1335 | # define wxUSE_TOOLBAR 0 | |
1336 | # endif | |
1337 | # endif | |
1338 | ||
1339 | # if wxUSE_XPM | |
1340 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1341 | # error "wxUSE_XPM requires wxUSE_IMAGE" | |
1342 | # else | |
1343 | # undef wxUSE_XPM | |
1344 | # define wxUSE_XPM 0 | |
1345 | # endif | |
1346 | # endif | |
1347 | ||
1348 | #endif /* !wxUSE_IMAGE */ | |
1349 | ||
1350 | #if wxUSE_DOC_VIEW_ARCHITECTURE | |
1351 | # if !wxUSE_MENUS | |
1352 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1353 | # error "DocView requires wxUSE_MENUS" | |
1354 | # else | |
1355 | # undef wxUSE_MENUS | |
1356 | # define wxUSE_MENUS 1 | |
1357 | # endif | |
1358 | # endif | |
1359 | ||
1360 | # if !wxUSE_CHOICEDLG | |
1361 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1362 | # error "DocView requires wxUSE_CHOICEDLG" | |
1363 | # else | |
1364 | # undef wxUSE_CHOICEDLG | |
1365 | # define wxUSE_CHOICEDLG 1 | |
1366 | # endif | |
1367 | # endif | |
1368 | ||
1369 | # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM | |
1370 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1371 | # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM" | |
1372 | # else | |
1373 | # undef wxUSE_STREAMS | |
1374 | # define wxUSE_STREAMS 1 | |
1375 | # endif | |
1376 | # endif | |
1377 | #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */ | |
1378 | ||
1379 | #if wxUSE_PRINTING_ARCHITECTURE | |
1380 | # if !wxUSE_COMBOBOX | |
1381 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1382 | # error "Print dialog requires wxUSE_COMBOBOX" | |
1383 | # else | |
1384 | # undef wxUSE_COMBOBOX | |
1385 | # define wxUSE_COMBOBOX 1 | |
1386 | # endif | |
1387 | # endif | |
1388 | #endif /* wxUSE_PRINTING_ARCHITECTURE */ | |
1389 | ||
1390 | #if wxUSE_MDI_ARCHITECTURE | |
1391 | # if !wxUSE_MDI | |
1392 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1393 | # error "MDI requires wxUSE_MDI" | |
1394 | # else | |
1395 | # undef wxUSE_MDI | |
1396 | # define wxUSE_MDI 1 | |
1397 | # endif | |
1398 | # endif | |
1399 | ||
1400 | # if !wxUSE_DOC_VIEW_ARCHITECTURE | |
1401 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1402 | # error "MDI requires wxUSE_DOC_VIEW_ARCHITECTURE" | |
1403 | # else | |
1404 | # undef wxUSE_DOC_VIEW_ARCHITECTURE | |
1405 | # define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
1406 | # endif | |
1407 | # endif | |
1408 | #endif /* wxUSE_MDI_ARCHITECTURE */ | |
1409 | ||
1410 | #if !wxUSE_FILEDLG | |
1411 | # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP | |
1412 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1413 | # error "wxFileDialog must be compiled as well" | |
1414 | # else | |
1415 | # undef wxUSE_FILEDLG | |
1416 | # define wxUSE_FILEDLG 1 | |
1417 | # endif | |
1418 | # endif | |
1419 | #endif /* wxUSE_FILEDLG */ | |
1420 | ||
1421 | #if !wxUSE_BUTTON | |
1422 | # if wxUSE_PROGRESSDLG || \ | |
1423 | wxUSE_FONTDLG || \ | |
1424 | wxUSE_FILEDLG || \ | |
1425 | wxUSE_CHOICEDLG || \ | |
1426 | wxUSE_NUMBERDLG || \ | |
1427 | wxUSE_TEXTDLG || \ | |
1428 | wxUSE_DIRDLG || \ | |
1429 | wxUSE_STARTUP_TIPS || \ | |
1430 | wxUSE_WIZARDDLG | |
1431 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1432 | # error "Common and generic dialogs require wxUSE_BUTTON" | |
1433 | # else | |
1434 | # undef wxUSE_BUTTON | |
1435 | # define wxUSE_BUTTON 1 | |
1436 | # endif | |
1437 | # endif | |
1438 | #endif /* wxUSE_PROGRESSDLG */ | |
1439 | ||
1440 | #if !wxUSE_TOOLBAR | |
1441 | # if wxUSE_TOOLBAR_NATIVE | |
1442 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1443 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1" | |
1444 | # else | |
1445 | # undef wxUSE_TOOLBAR_NATIVE | |
1446 | # define wxUSE_TOOLBAR_NATIVE 0 | |
1447 | # endif | |
1448 | # endif | |
1449 | ||
1450 | # if wxUSE_TOOLBAR_SIMPLE | |
1451 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1452 | # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1" | |
1453 | # else | |
1454 | # undef wxUSE_TOOLBAR_SIMPLE | |
1455 | # define wxUSE_TOOLBAR_SIMPLE 0 | |
1456 | # endif | |
1457 | # endif | |
1458 | #endif | |
1459 | ||
1460 | #if !wxUSE_IMAGLIST | |
1461 | # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL | |
1462 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1463 | # error "wxImageList must be compiled as well" | |
1464 | # else | |
1465 | # undef wxUSE_IMAGLIST | |
1466 | # define wxUSE_IMAGLIST 1 | |
1467 | # endif | |
1468 | # endif | |
1469 | #endif /* !wxUSE_IMAGLIST */ | |
1470 | ||
1471 | #if !wxUSE_MSGDLG | |
1472 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1473 | /* FIXME: should compile without it, of course, but doesn't */ | |
1474 | # error "wxMessageBox is always needed" | |
1475 | # else | |
1476 | # undef wxUSE_MSGDLG | |
1477 | # define wxUSE_MSGDLG 1 | |
1478 | # endif | |
1479 | #endif | |
1480 | ||
1481 | #if wxUSE_RADIOBOX | |
1482 | # if !wxUSE_RADIOBTN || !wxUSE_STATBOX | |
1483 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1484 | # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX" | |
1485 | # else | |
1486 | # undef wxUSE_RADIOBTN | |
1487 | # undef wxUSE_STATBOX | |
1488 | # define wxUSE_RADIOBTN 1 | |
1489 | # define wxUSE_STATBOX 1 | |
1490 | # endif | |
1491 | # endif | |
1492 | #endif /* wxUSE_RADIOBOX */ | |
1493 | ||
1494 | #if wxUSE_LOGWINDOW | |
1495 | # if !wxUSE_TEXTCTRL | |
1496 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1497 | # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL" | |
1498 | # else | |
1499 | # undef wxUSE_TEXTCTRL | |
1500 | # define wxUSE_TEXTCTRL 1 | |
1501 | # endif | |
1502 | # endif | |
1503 | #endif /* wxUSE_LOGWINDOW */ | |
1504 | ||
1505 | #if wxUSE_LOG_DIALOG | |
1506 | # if !wxUSE_LISTCTRL || !wxUSE_BUTTON | |
1507 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1508 | # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON" | |
1509 | # else | |
1510 | # undef wxUSE_LISTCTRL | |
1511 | # define wxUSE_LISTCTRL 1 | |
1512 | # undef wxUSE_BUTTON | |
1513 | # define wxUSE_BUTTON 1 | |
1514 | # endif | |
1515 | # endif | |
1516 | #endif /* wxUSE_LOG_DIALOG */ | |
1517 | ||
1518 | /* I wonder if we shouldn't just remove all occurrences of | |
1519 | wxUSE_DYNAMIC_CLASSES from the sources? */ | |
1520 | #if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES | |
1521 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1522 | # error "wxUSE_DYNAMIC_CLASSES must be defined as 1" | |
1523 | # else | |
1524 | # undef wxUSE_DYNAMIC_CLASSES | |
1525 | # define wxUSE_DYNAMIC_CLASSES 1 | |
1526 | # endif | |
1527 | #endif /* wxUSE_DYNAMIC_CLASSES */ | |
1528 | ||
1529 | #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ | |
1530 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1531 | # error "wxClipboard requires wxDataObject" | |
1532 | # else | |
1533 | # undef wxUSE_DATAOBJ | |
1534 | # define wxUSE_DATAOBJ 1 | |
1535 | # endif | |
1536 | #endif /* wxUSE_CLIPBOARD */ | |
1537 | ||
1538 | #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO | |
1539 | # ifdef wxABORT_ON_CONFIG_ERROR | |
1540 | # error "wxr resources require PrologIO" | |
1541 | # else | |
1542 | # undef wxUSE_PROLOGIO | |
1543 | # define wxUSE_PROLOGIO 1 | |
1544 | # endif | |
1545 | #endif /* wxUSE_WX_RESOURCES */ | |
1546 | ||
1547 | #endif /* wxUSE_GUI */ | |
1548 |