]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/chkconf.h
3 * Purpose: check the config settings for consistency
4 * Author: Vadim Zeitlin
8 * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
15 Platform-specific checking.
18 #if defined(__WXPALMOS__)
19 # include "wx/palmos/chkconf.h"
20 #elif defined(__WXWINCE__)
21 # include "wx/msw/wince/chkconf.h"
22 #elif defined(__WXMSW__)
23 # include "wx/msw/chkconf.h"
24 #elif defined(__WXMAC__)
25 # include "wx/mac/chkconf.h"
26 #elif defined(__OS2__)
27 # include "wx/os2/chkconf.h"
28 #elif defined(__WXMOTIF__)
29 # include "wx/motif/chkconf.h"
33 this global setting determines what should we do if the setting FOO
34 requires BAR and BAR is not set: we can either silently unset FOO as well
35 (do this if you're trying to build the smallest possible library) or give an
36 error and abort (default as leads to least surprizing behaviour)
38 #define wxABORT_ON_CONFIG_ERROR
44 /* GUI build by default */
45 #if !defined(wxUSE_GUI)
47 #endif /* !defined(wxUSE_GUI) */
50 If we're compiling without support for threads/exceptions we have to
51 disable the corresponding features.
55 # define wxUSE_THREADS 0
56 #endif /* wxNO_THREADS */
58 #ifdef wxNO_EXCEPTIONS
59 # undef wxUSE_EXCEPTIONS
60 # define wxUSE_EXCEPTIONS 0
61 #endif /* wxNO_EXCEPTIONS */
63 /* we also must disable exceptions if compiler doesn't support them */
64 #if defined(_MSC_VER) && !defined(_CPPUNWIND)
65 # undef wxUSE_EXCEPTIONS
66 # define wxUSE_EXCEPTIONS 0
67 #endif /* VC++ without exceptions support */
71 tests for non GUI features
74 #ifndef wxUSE_CRASHREPORT
75 /* this one is special: as currently it is Windows-only, don't force it
76 to be defined on other platforms */
77 # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
78 # error "wxUSE_CRASHREPORT must be defined."
80 # define wxUSE_CRASHREPORT 0
82 #endif /* !defined(wxUSE_CRASHREPORT) */
84 #ifndef wxUSE_DYNLIB_CLASS
85 # ifdef wxABORT_ON_CONFIG_ERROR
86 # error "wxUSE_DYNLIB_CLASS must be defined."
88 # define wxUSE_DYNLIB_CLASS 0
90 #endif /* !defined(wxUSE_DYNLIB_CLASS) */
92 #ifndef wxUSE_EXCEPTIONS
93 # ifdef wxABORT_ON_CONFIG_ERROR
94 # error "wxUSE_EXCEPTIONS must be defined."
96 # define wxUSE_EXCEPTIONS 0
98 #endif /* !defined(wxUSE_EXCEPTIONS) */
100 #ifndef wxUSE_FILESYSTEM
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxUSE_FILESYSTEM must be defined."
104 # define wxUSE_FILESYSTEM 0
106 #endif /* !defined(wxUSE_FILESYSTEM) */
108 /* don't give an error about this one yet, it's not fully implemented */
109 #ifndef wxUSE_FSVOLUME
110 # define wxUSE_FSVOLUME 0
111 #endif /* !defined(wxUSE_FSVOLUME) */
113 #ifndef wxUSE_DYNAMIC_LOADER
114 # ifdef wxABORT_ON_CONFIG_ERROR
115 # error "wxUSE_DYNAMIC_LOADER must be defined."
117 # define wxUSE_DYNAMIC_LOADER 0
119 #endif /* !defined(wxUSE_DYNAMIC_LOADER) */
122 # ifdef wxABORT_ON_CONFIG_ERROR
123 # error "wxUSE_LOG must be defined."
127 #endif /* !defined(wxUSE_LOG) */
129 #ifndef wxUSE_LONGLONG
130 # ifdef wxABORT_ON_CONFIG_ERROR
131 # error "wxUSE_LONGLONG must be defined."
133 # define wxUSE_LONGLONG 0
135 #endif /* !defined(wxUSE_LONGLONG) */
137 #ifndef wxUSE_MIMETYPE
138 # ifdef wxABORT_ON_CONFIG_ERROR
139 # error "wxUSE_MIMETYPE must be defined."
141 # define wxUSE_MIMETYPE 0
143 #endif /* !defined(wxUSE_MIMETYPE) */
145 #ifndef wxUSE_ON_FATAL_EXCEPTION
146 # ifdef wxABORT_ON_CONFIG_ERROR
147 # error "wxUSE_ON_FATAL_EXCEPTION must be defined."
149 # define wxUSE_ON_FATAL_EXCEPTION 0
151 #endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
153 #ifndef wxUSE_PROTOCOL
154 # ifdef wxABORT_ON_CONFIG_ERROR
155 # error "wxUSE_PROTOCOL must be defined."
157 # define wxUSE_PROTOCOL 0
159 #endif /* !defined(wxUSE_PROTOCOL) */
161 /* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
163 # undef wxUSE_PROTOCOL_HTTP
164 # undef wxUSE_PROTOCOL_FTP
165 # undef wxUSE_PROTOCOL_FILE
166 # define wxUSE_PROTOCOL_HTTP 0
167 # define wxUSE_PROTOCOL_FTP 0
168 # define wxUSE_PROTOCOL_FILE 0
169 #endif /* wxUSE_PROTOCOL */
171 #ifndef wxUSE_PROTOCOL_HTTP
172 # ifdef wxABORT_ON_CONFIG_ERROR
173 # error "wxUSE_PROTOCOL_HTTP must be defined."
175 # define wxUSE_PROTOCOL_HTTP 0
177 #endif /* !defined(wxUSE_PROTOCOL_HTTP) */
179 #ifndef wxUSE_PROTOCOL_FTP
180 # ifdef wxABORT_ON_CONFIG_ERROR
181 # error "wxUSE_PROTOCOL_FTP must be defined."
183 # define wxUSE_PROTOCOL_FTP 0
185 #endif /* !defined(wxUSE_PROTOCOL_FTP) */
187 #ifndef wxUSE_PROTOCOL_FILE
188 # ifdef wxABORT_ON_CONFIG_ERROR
189 # error "wxUSE_PROTOCOL_FILE must be defined."
191 # define wxUSE_PROTOCOL_FILE 0
193 #endif /* !defined(wxUSE_PROTOCOL_FILE) */
196 # ifdef wxABORT_ON_CONFIG_ERROR
197 # error "wxUSE_REGEX must be defined."
199 # define wxUSE_REGEX 0
201 #endif /* !defined(wxUSE_REGEX) */
203 #ifndef wxUSE_STDPATHS
204 # ifdef wxABORT_ON_CONFIG_ERROR
205 # error "wxUSE_STDPATHS must be defined."
207 # define wxUSE_STDPATHS 1
209 #endif /* !defined(wxUSE_STDPATHS) */
212 # ifdef wxABORT_ON_CONFIG_ERROR
213 # error "wxUSE_XML must be defined."
217 #endif /* !defined(wxUSE_XML) */
219 #ifndef wxUSE_SOCKETS
220 # ifdef wxABORT_ON_CONFIG_ERROR
221 # error "wxUSE_SOCKETS must be defined."
223 # define wxUSE_SOCKETS 0
225 #endif /* !defined(wxUSE_SOCKETS) */
227 #ifndef wxUSE_STREAMS
228 # ifdef wxABORT_ON_CONFIG_ERROR
229 # error "wxUSE_STREAMS must be defined."
231 # define wxUSE_STREAMS 0
233 #endif /* !defined(wxUSE_STREAMS) */
235 #ifndef wxUSE_STOPWATCH
236 # ifdef wxABORT_ON_CONFIG_ERROR
237 # error "wxUSE_STOPWATCH must be defined."
239 # define wxUSE_STOPWATCH 0
241 #endif /* !defined(wxUSE_STOPWATCH) */
243 #ifndef wxUSE_TEXTBUFFER
244 # ifdef wxABORT_ON_CONFIG_ERROR
245 # error "wxUSE_TEXTBUFFER must be defined."
247 # define wxUSE_TEXTBUFFER 0
249 #endif /* !defined(wxUSE_TEXTBUFFER) */
251 #ifndef wxUSE_TEXTFILE
252 # ifdef wxABORT_ON_CONFIG_ERROR
253 # error "wxUSE_TEXTFILE must be defined."
255 # define wxUSE_TEXTFILE 0
257 #endif /* !defined(wxUSE_TEXTFILE) */
259 #ifndef wxUSE_UNICODE
260 # ifdef wxABORT_ON_CONFIG_ERROR
261 # error "wxUSE_UNICODE must be defined."
263 # define wxUSE_UNICODE 0
265 #endif /* !defined(wxUSE_UNICODE) */
268 # ifdef wxABORT_ON_CONFIG_ERROR
269 # error "wxUSE_URL must be defined."
273 #endif /* !defined(wxUSE_URL) */
276 all these tests are for GUI only
281 all of the settings tested below must be defined or we'd get an error from
282 preprocessor about invalid integer expression
286 # ifdef wxABORT_ON_CONFIG_ERROR
287 # error "wxUSE_ACCEL must be defined."
289 # define wxUSE_ACCEL 0
291 #endif /* !defined(wxUSE_ACCEL) */
293 #ifndef wxUSE_BMPBUTTON
294 # ifdef wxABORT_ON_CONFIG_ERROR
295 # error "wxUSE_BMPBUTTON must be defined."
297 # define wxUSE_BMPBUTTON 0
299 #endif /* !defined(wxUSE_BMPBUTTON) */
302 # ifdef wxABORT_ON_CONFIG_ERROR
303 # error "wxUSE_BUTTON must be defined."
305 # define wxUSE_BUTTON 0
307 #endif /* !defined(wxUSE_BUTTON) */
309 #ifndef wxUSE_CALENDARCTRL
310 # ifdef wxABORT_ON_CONFIG_ERROR
311 # error "wxUSE_CALENDARCTRL must be defined."
313 # define wxUSE_CALENDARCTRL 0
315 #endif /* !defined(wxUSE_CALENDARCTRL) */
318 # ifdef wxABORT_ON_CONFIG_ERROR
319 # error "wxUSE_CARET must be defined."
321 # define wxUSE_CARET 0
323 #endif /* !defined(wxUSE_CARET) */
325 #ifndef wxUSE_CHECKBOX
326 # ifdef wxABORT_ON_CONFIG_ERROR
327 # error "wxUSE_CHECKBOX must be defined."
329 # define wxUSE_CHECKBOX 0
331 #endif /* !defined(wxUSE_CHECKBOX) */
333 #ifndef wxUSE_CHECKLISTBOX
334 # ifdef wxABORT_ON_CONFIG_ERROR
335 # error "wxUSE_CHECKLISTBOX must be defined."
337 # define wxUSE_CHECKLISTBOX 0
339 #endif /* !defined(wxUSE_CHECKLISTBOX) */
342 # ifdef wxABORT_ON_CONFIG_ERROR
343 # error "wxUSE_CHOICE must be defined."
345 # define wxUSE_CHOICE 0
347 #endif /* !defined(wxUSE_CHOICE) */
349 #ifndef wxUSE_CHOICEBOOK
350 # ifdef wxABORT_ON_CONFIG_ERROR
351 # error "wxUSE_CHOICEBOOK must be defined."
353 # define wxUSE_CHOICEBOOK 0
355 #endif /* !defined(wxUSE_CHOICEBOOK) */
357 #ifndef wxUSE_CHOICEDLG
358 # ifdef wxABORT_ON_CONFIG_ERROR
359 # error "wxUSE_CHOICEDLG must be defined."
361 # define wxUSE_CHOICEDLG 0
363 #endif /* !defined(wxUSE_CHOICEDLG) */
365 #ifndef wxUSE_CLIPBOARD
366 # ifdef wxABORT_ON_CONFIG_ERROR
367 # error "wxUSE_CLIPBOARD must be defined."
369 # define wxUSE_CLIPBOARD 0
371 #endif /* !defined(wxUSE_CLIPBOARD) */
373 #ifndef wxUSE_COLOURDLG
374 # ifdef wxABORT_ON_CONFIG_ERROR
375 # error "wxUSE_COLOURDLG must be defined."
377 # define wxUSE_COLOURDLG 0
379 #endif /* !defined(wxUSE_COLOURDLG) */
381 #ifndef wxUSE_COMBOBOX
382 # ifdef wxABORT_ON_CONFIG_ERROR
383 # error "wxUSE_COMBOBOX must be defined."
385 # define wxUSE_COMBOBOX 0
387 #endif /* !defined(wxUSE_COMBOBOX) */
389 #ifndef wxUSE_DATAOBJ
390 # ifdef wxABORT_ON_CONFIG_ERROR
391 # error "wxUSE_DATAOBJ must be defined."
393 # define wxUSE_DATAOBJ 0
395 #endif /* !defined(wxUSE_DATAOBJ) */
397 #ifndef wxUSE_DATEPICKCTRL
398 # ifdef wxABORT_ON_CONFIG_ERROR
399 # error "wxUSE_DATEPICKCTRL must be defined."
401 # define wxUSE_DATEPICKCTRL 0
403 #endif /* !defined(wxUSE_DATEPICKCTRL) */
405 #ifndef wxUSE_DISPLAY
406 # ifdef wxABORT_ON_CONFIG_ERROR
407 # error "wxUSE_DISPLAY must be defined."
409 # define wxUSE_DISPLAY 0
411 #endif /* !defined(wxUSE_DISPLAY) */
413 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
414 # ifdef wxABORT_ON_CONFIG_ERROR
415 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
417 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
419 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
421 #ifndef wxUSE_FILEDLG
422 # ifdef wxABORT_ON_CONFIG_ERROR
423 # error "wxUSE_FILEDLG must be defined."
425 # define wxUSE_FILEDLG 0
427 #endif /* !defined(wxUSE_FILEDLG) */
429 #ifndef wxUSE_FONTDLG
430 # ifdef wxABORT_ON_CONFIG_ERROR
431 # error "wxUSE_FONTDLG must be defined."
433 # define wxUSE_FONTDLG 0
435 #endif /* !defined(wxUSE_FONTDLG) */
437 #ifndef wxUSE_FONTMAP
438 # ifdef wxABORT_ON_CONFIG_ERROR
439 # error "wxUSE_FONTMAP must be defined."
441 # define wxUSE_FONTMAP 0
443 #endif /* !defined(wxUSE_FONTMAP) */
446 # ifdef wxABORT_ON_CONFIG_ERROR
447 # error "wxUSE_GAUGE must be defined."
449 # define wxUSE_GAUGE 0
451 #endif /* !defined(wxUSE_GAUGE) */
454 # ifdef wxABORT_ON_CONFIG_ERROR
455 # error "wxUSE_GRID must be defined."
457 # define wxUSE_GRID 0
459 #endif /* !defined(wxUSE_GRID) */
462 # ifdef wxABORT_ON_CONFIG_ERROR
463 # error "wxUSE_HELP must be defined."
465 # define wxUSE_HELP 0
467 #endif /* !defined(wxUSE_HELP) */
470 # ifdef wxABORT_ON_CONFIG_ERROR
471 # error "wxUSE_HTML must be defined."
473 # define wxUSE_HTML 0
475 #endif /* !defined(wxUSE_HTML) */
478 # ifdef wxABORT_ON_CONFIG_ERROR
479 # error "wxUSE_XRC must be defined."
483 #endif /* !defined(wxUSE_XRC) */
485 #ifndef wxUSE_LIBMSPACK
487 /* set to 0 on platforms that don't have libmspack */
488 # define wxUSE_LIBMSPACK 0
490 # ifdef wxABORT_ON_CONFIG_ERROR
491 # error "wxUSE_LIBMSPACK must be defined."
493 # define wxUSE_LIBMSPACK 0
496 #endif /* !defined(wxUSE_LIBMSPACK) */
498 #ifndef wxUSE_ICO_CUR
499 # ifdef wxABORT_ON_CONFIG_ERROR
500 # error "wxUSE_ICO_CUR must be defined."
502 # define wxUSE_ICO_CUR 0
504 #endif /* !defined(wxUSE_ICO_CUR) */
507 # ifdef wxABORT_ON_CONFIG_ERROR
508 # error "wxUSE_IFF must be defined."
512 #endif /* !defined(wxUSE_IFF) */
514 #ifndef wxUSE_IMAGLIST
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_IMAGLIST must be defined."
518 # define wxUSE_IMAGLIST 0
520 #endif /* !defined(wxUSE_IMAGLIST) */
522 #ifndef wxUSE_JOYSTICK
523 # ifdef wxABORT_ON_CONFIG_ERROR
524 # error "wxUSE_JOYSTICK must be defined."
526 # define wxUSE_JOYSTICK 0
528 #endif /* !defined(wxUSE_JOYSTICK) */
530 #ifndef wxUSE_LISTBOOK
531 # ifdef wxABORT_ON_CONFIG_ERROR
532 # error "wxUSE_LISTBOOK must be defined."
534 # define wxUSE_LISTBOOK 0
536 #endif /* !defined(wxUSE_LISTBOOK) */
538 #ifndef wxUSE_LISTBOX
539 # ifdef wxABORT_ON_CONFIG_ERROR
540 # error "wxUSE_LISTBOX must be defined."
542 # define wxUSE_LISTBOX 0
544 #endif /* !defined(wxUSE_LISTBOX) */
546 #ifndef wxUSE_LISTCTRL
547 # ifdef wxABORT_ON_CONFIG_ERROR
548 # error "wxUSE_LISTCTRL must be defined."
550 # define wxUSE_LISTCTRL 0
552 #endif /* !defined(wxUSE_LISTCTRL) */
555 # ifdef wxABORT_ON_CONFIG_ERROR
556 # error "wxUSE_LOGGUI must be defined."
558 # define wxUSE_LOGGUI 0
560 #endif /* !defined(wxUSE_LOGGUI) */
562 #ifndef wxUSE_LOGWINDOW
563 # ifdef wxABORT_ON_CONFIG_ERROR
564 # error "wxUSE_LOGWINDOW must be defined."
566 # define wxUSE_LOGWINDOW 0
568 #endif /* !defined(wxUSE_LOGWINDOW) */
570 #ifndef wxUSE_LOG_DIALOG
571 # ifdef wxABORT_ON_CONFIG_ERROR
572 # error "wxUSE_LOG_DIALOG must be defined."
574 # define wxUSE_LOG_DIALOG 0
576 #endif /* !defined(wxUSE_LOG_DIALOG) */
579 # ifdef wxABORT_ON_CONFIG_ERROR
580 # error "wxUSE_MDI must be defined."
584 #endif /* !defined(wxUSE_MDI) */
586 #ifndef wxUSE_MDI_ARCHITECTURE
587 # ifdef wxABORT_ON_CONFIG_ERROR
588 # error "wxUSE_MDI_ARCHITECTURE must be defined."
590 # define wxUSE_MDI_ARCHITECTURE 0
592 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
595 # ifdef wxABORT_ON_CONFIG_ERROR
596 # error "wxUSE_MENUS must be defined."
598 # define wxUSE_MENUS 0
600 #endif /* !defined(wxUSE_MENUS) */
603 # ifdef wxABORT_ON_CONFIG_ERROR
604 # error "wxUSE_MSGDLG must be defined."
606 # define wxUSE_MSGDLG 0
608 #endif /* !defined(wxUSE_MSGDLG) */
610 #ifndef wxUSE_NOTEBOOK
611 # ifdef wxABORT_ON_CONFIG_ERROR
612 # error "wxUSE_NOTEBOOK must be defined."
614 # define wxUSE_NOTEBOOK 0
616 #endif /* !defined(wxUSE_NOTEBOOK) */
618 #ifndef wxUSE_PALETTE
619 # ifdef wxABORT_ON_CONFIG_ERROR
620 # error "wxUSE_PALETTE must be defined."
622 # define wxUSE_PALETTE 0
624 #endif /* !defined(wxUSE_PALETTE) */
626 #ifndef wxUSE_POPUPWIN
627 # ifdef wxABORT_ON_CONFIG_ERROR
628 # error "wxUSE_POPUPWIN must be defined."
630 # define wxUSE_POPUPWIN 0
632 #endif /* !defined(wxUSE_POPUPWIN) */
634 #ifndef wxUSE_PRINTING_ARCHITECTURE
635 # ifdef wxABORT_ON_CONFIG_ERROR
636 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
638 # define wxUSE_PRINTING_ARCHITECTURE 0
640 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
642 #ifndef wxUSE_RADIOBOX
643 # ifdef wxABORT_ON_CONFIG_ERROR
644 # error "wxUSE_RADIOBOX must be defined."
646 # define wxUSE_RADIOBOX 0
648 #endif /* !defined(wxUSE_RADIOBOX) */
650 #ifndef wxUSE_RADIOBTN
651 # ifdef wxABORT_ON_CONFIG_ERROR
652 # error "wxUSE_RADIOBTN must be defined."
654 # define wxUSE_RADIOBTN 0
656 #endif /* !defined(wxUSE_RADIOBTN) */
659 # ifdef wxABORT_ON_CONFIG_ERROR
660 # error "wxUSE_SASH must be defined."
662 # define wxUSE_SASH 0
664 #endif /* !defined(wxUSE_SASH) */
666 #ifndef wxUSE_SCROLLBAR
667 # ifdef wxABORT_ON_CONFIG_ERROR
668 # error "wxUSE_SCROLLBAR must be defined."
670 # define wxUSE_SCROLLBAR 0
672 #endif /* !defined(wxUSE_SCROLLBAR) */
675 # ifdef wxABORT_ON_CONFIG_ERROR
676 # error "wxUSE_SLIDER must be defined."
678 # define wxUSE_SLIDER 0
680 #endif /* !defined(wxUSE_SLIDER) */
683 # ifdef wxABORT_ON_CONFIG_ERROR
684 # error "wxUSE_SOUND must be defined."
686 # define wxUSE_SOUND 0
688 #endif /* !defined(wxUSE_SOUND) */
690 #ifndef wxUSE_SPINBTN
691 # ifdef wxABORT_ON_CONFIG_ERROR
692 # error "wxUSE_SPINBTN must be defined."
694 # define wxUSE_SPINBTN 0
696 #endif /* !defined(wxUSE_SPINBTN) */
698 #ifndef wxUSE_SPINCTRL
699 # ifdef wxABORT_ON_CONFIG_ERROR
700 # error "wxUSE_SPINCTRL must be defined."
702 # define wxUSE_SPINCTRL 0
704 #endif /* !defined(wxUSE_SPINCTRL) */
707 # ifdef wxABORT_ON_CONFIG_ERROR
708 # error "wxUSE_SPLASH must be defined."
710 # define wxUSE_SPLASH 0
712 #endif /* !defined(wxUSE_SPLASH) */
714 #ifndef wxUSE_SPLITTER
715 # ifdef wxABORT_ON_CONFIG_ERROR
716 # error "wxUSE_SPLITTER must be defined."
718 # define wxUSE_SPLITTER 0
720 #endif /* !defined(wxUSE_SPLITTER) */
722 #ifndef wxUSE_STATBMP
723 # ifdef wxABORT_ON_CONFIG_ERROR
724 # error "wxUSE_STATBMP must be defined."
726 # define wxUSE_STATBMP 0
728 #endif /* !defined(wxUSE_STATBMP) */
730 #ifndef wxUSE_STATBOX
731 # ifdef wxABORT_ON_CONFIG_ERROR
732 # error "wxUSE_STATBOX must be defined."
734 # define wxUSE_STATBOX 0
736 #endif /* !defined(wxUSE_STATBOX) */
738 #ifndef wxUSE_STATLINE
739 # ifdef wxABORT_ON_CONFIG_ERROR
740 # error "wxUSE_STATLINE must be defined."
742 # define wxUSE_STATLINE 0
744 #endif /* !defined(wxUSE_STATLINE) */
746 #ifndef wxUSE_STATTEXT
747 # ifdef wxABORT_ON_CONFIG_ERROR
748 # error "wxUSE_STATTEXT must be defined."
750 # define wxUSE_STATTEXT 0
752 #endif /* !defined(wxUSE_STATTEXT) */
754 #ifndef wxUSE_STATUSBAR
755 # ifdef wxABORT_ON_CONFIG_ERROR
756 # error "wxUSE_STATUSBAR must be defined."
758 # define wxUSE_STATUSBAR 0
760 #endif /* !defined(wxUSE_STATUSBAR) */
762 #ifndef wxUSE_TAB_DIALOG
763 # ifdef wxABORT_ON_CONFIG_ERROR
764 # error "wxUSE_TAB_DIALOG must be defined."
766 # define wxUSE_TAB_DIALOG 0
768 #endif /* !defined(wxUSE_TAB_DIALOG) */
770 #ifndef wxUSE_TEXTCTRL
771 # ifdef wxABORT_ON_CONFIG_ERROR
772 # error "wxUSE_TEXTCTRL must be defined."
774 # define wxUSE_TEXTCTRL 0
776 #endif /* !defined(wxUSE_TEXTCTRL) */
778 #ifndef wxUSE_TIPWINDOW
779 # ifdef wxABORT_ON_CONFIG_ERROR
780 # error "wxUSE_TIPWINDOW must be defined."
782 # define wxUSE_TIPWINDOW 0
784 #endif /* !defined(wxUSE_TIPWINDOW) */
786 #ifndef wxUSE_TOOLBAR
787 # ifdef wxABORT_ON_CONFIG_ERROR
788 # error "wxUSE_TOOLBAR must be defined."
790 # define wxUSE_TOOLBAR 0
792 #endif /* !defined(wxUSE_TOOLBAR) */
794 #ifndef wxUSE_TOOLTIPS
795 # ifdef wxABORT_ON_CONFIG_ERROR
796 # error "wxUSE_TOOLTIPS must be defined."
798 # define wxUSE_TOOLTIPS 0
800 #endif /* !defined(wxUSE_TOOLTIPS) */
802 #ifndef wxUSE_TREECTRL
803 # ifdef wxABORT_ON_CONFIG_ERROR
804 # error "wxUSE_TREECTRL must be defined."
806 # define wxUSE_TREECTRL 0
808 #endif /* !defined(wxUSE_TREECTRL) */
810 #ifndef wxUSE_VALIDATORS
811 # ifdef wxABORT_ON_CONFIG_ERROR
812 # error "wxUSE_VALIDATORS must be defined."
814 # define wxUSE_VALIDATORS 0
816 #endif /* !defined(wxUSE_VALIDATORS) */
818 #ifndef wxUSE_WXHTML_HELP
819 # ifdef wxABORT_ON_CONFIG_ERROR
820 # error "wxUSE_WXHTML_HELP must be defined."
822 # define wxUSE_WXHTML_HELP 0
824 #endif /* !defined(wxUSE_WXHTML_HELP) */
826 #endif /* wxUSE_GUI */
829 check consistency of the settings
832 #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
833 # ifdef wxABORT_ON_CONFIG_ERROR
834 # error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
836 # undef wxUSE_CRASHREPORT
837 # define wxUSE_CRASHREPORT 0
839 #endif /* wxUSE_CRASHREPORT */
841 #if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
843 # ifdef wxABORT_ON_CONFIG_ERROR
844 # error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
846 # undef wxUSE_PROTOCOL
847 # define wxUSE_PROTOCOL 1
850 #endif /* wxUSE_PROTOCOL_XXX */
854 # ifdef wxABORT_ON_CONFIG_ERROR
855 # error "wxUSE_URL requires wxUSE_PROTOCOL"
857 # undef wxUSE_PROTOCOL
858 # define wxUSE_PROTOCOL 1
861 #endif /* wxUSE_URL */
865 # if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
866 # ifdef wxABORT_ON_CONFIG_ERROR
867 # error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
869 # undef wxUSE_SOCKETS
870 # define wxUSE_SOCKETS 1
876 # ifdef wxABORT_ON_CONFIG_ERROR
877 # error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
879 # undef wxUSE_STREAMS
880 # define wxUSE_STREAMS 1
883 #endif /* wxUSE_PROTOCOL */
885 /* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
887 # if !wxUSE_FILESYSTEM
888 # ifdef wxABORT_ON_CONFIG_ERROR
889 # error "wxHTML requires wxFileSystem"
891 # undef wxUSE_FILESYSTEM
892 # define wxUSE_FILESYSTEM 1
895 #endif /* wxUSE_HTML */
899 # ifdef wxABORT_ON_CONFIG_ERROR
900 # error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
902 # undef wxUSE_STREAMS
903 # define wxUSE_STREAMS 1
906 #endif /* wxUSE_FILESYSTEM */
910 # ifdef wxABORT_ON_CONFIG_ERROR
911 # error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
913 # undef wxUSE_PROTOCOL
914 # define wxUSE_PROTOCOL 1
917 #endif /* wxUSE_FS_INET */
919 #if wxUSE_STOPWATCH || wxUSE_DATETIME
921 # ifdef wxABORT_ON_CONFIG_ERROR
922 # error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
924 # undef wxUSE_LONGLONG
925 # define wxUSE_LONGLONG 1
928 #endif /* wxUSE_STOPWATCH */
930 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
931 # ifdef wxABORT_ON_CONFIG_ERROR
932 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
934 # undef wxUSE_TEXTFILE
935 # define wxUSE_TEXTFILE 1
937 #endif /* wxUSE_MIMETYPE */
939 #if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
940 # ifdef wxABORT_ON_CONFIG_ERROR
941 # error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
943 # undef wxUSE_TEXTBUFFER
944 # define wxUSE_TEXTBUFFER 1
946 #endif /* wxUSE_TEXTFILE */
948 #if wxUSE_TEXTFILE && !wxUSE_FILE
949 # ifdef wxABORT_ON_CONFIG_ERROR
950 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
953 # define wxUSE_FILE 1
955 #endif /* wxUSE_TEXTFILE */
957 #if wxUSE_XML && !wxUSE_WCHAR_T
958 # ifdef wxABORT_ON_CONFIG_ERROR
959 # error "wxUSE_XML requires wxUSE_WCHAR_T"
964 #endif /* wxUSE_XML */
966 #if !wxUSE_DYNLIB_CLASS
967 # if wxUSE_DYNAMIC_LOADER
968 # ifdef wxABORT_ON_CONFIG_ERROR
969 # error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
971 # define wxUSE_DYNLIB_CLASS 1
974 #endif /* wxUSE_DYNLIB_CLASS */
978 # ifdef wxABORT_ON_CONFIG_ERROR
979 # error "wxZip requires wxZlib"
982 # define wxUSE_ZLIB 1
985 # if !wxUSE_ARCHIVE_STREAMS
986 # ifdef wxABORT_ON_CONFIG_ERROR
987 # error "wxZip requires wxArchive"
989 # undef wxUSE_ARCHIVE_STREAMS
990 # define wxUSE_ARCHIVE_STREAMS 1
993 #endif /* wxUSE_ZIPSTREAM */
995 /* the rest of the tests is for the GUI settings only */
998 #if wxUSE_BUTTON || \
999 wxUSE_CALENDARCTRL || \
1002 wxUSE_BMPBUTTON || \
1004 wxUSE_CHECKLISTBOX || \
1013 wxUSE_SCROLLBAR || \
1021 wxUSE_STATUSBAR || \
1025 # if !wxUSE_CONTROLS
1026 # ifdef wxABORT_ON_CONFIG_ERROR
1027 # error "wxUSE_CONTROLS unset but some controls used"
1029 # undef wxUSE_CONTROLS
1030 # define wxUSE_CONTROLS 1
1033 #endif /* controls */
1037 # ifdef wxABORT_ON_CONFIG_ERROR
1038 # error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1040 # undef wxUSE_BUTTON
1041 # define wxUSE_BUTTON 1
1044 #endif /* wxUSE_BMPBUTTON */
1046 #if wxUSE_NOTEBOOK || wxUSE_LISTBOOK || wxUSE_CHOICEBOOK
1047 # if defined(wxUSE_BOOKCTRL) && !wxUSE_BOOKCTRL
1048 # ifdef wxABORT_ON_CONFIG_ERROR
1049 # error "wxUSE_BOOKCTRL must be set."
1051 # undef wxUSE_BOOKCTRL
1055 # ifndef wxUSE_BOOKCTRL
1056 # define wxUSE_BOOKCTRL 1
1058 #endif /* wxUSE_NOTEBOOK */
1061 # if !wxUSE_LISTCTRL
1062 # ifdef wxABORT_ON_CONFIG_ERROR
1063 # error "wxListbook requires wxListCtrl"
1065 # undef wxUSE_LISTCTRL
1066 # define wxUSE_LISTCTRL 1
1069 #endif /* wxUSE_LISTBOOK */
1071 #if wxUSE_CHOICEBOOK
1073 # ifdef wxABORT_ON_CONFIG_ERROR
1074 # error "wxChoicebook requires wxChoice"
1076 # undef wxUSE_CHOICE
1077 # define wxUSE_CHOICE 1
1080 #endif /* wxUSE_CHOICEBOOK */
1082 /* don't attempt to use native status bar on the platforms not having it */
1083 #ifndef wxUSE_NATIVE_STATUSBAR
1084 # define wxUSE_NATIVE_STATUSBAR 0
1085 #elif wxUSE_NATIVE_STATUSBAR
1086 # if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1087 defined(__WXMAC__) || \
1088 defined(__WXPALMOS__) )
1089 # undef wxUSE_NATIVE_STATUSBAR
1090 # define wxUSE_NATIVE_STATUSBAR 0
1094 /* wxUniv-specific dependencies */
1095 #if defined(__WXUNIVERSAL__)
1096 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
1097 # ifdef wxABORT_ON_CONFIG_ERROR
1098 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
1100 # undef wxUSE_POPUPWIN
1101 # define wxUSE_POPUPWIN 1
1107 # ifdef wxABORT_ON_CONFIG_ERROR
1108 # error "wxComboBox requires wxListBox in wxUniversal"
1110 # undef wxUSE_LISTBOX
1111 # define wxUSE_LISTBOX 1
1114 # endif /* wxUSE_COMBOBOX */
1117 # if !wxUSE_CHECKBOX
1118 # ifdef wxABORT_ON_CONFIG_ERROR
1119 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
1121 # undef wxUSE_CHECKBOX
1122 # define wxUSE_CHECKBOX 1
1125 # endif /* wxUSE_RADIOBTN */
1129 # ifdef wxABORT_ON_CONFIG_ERROR
1130 # error "wxTextCtrl requires wxCaret in wxUniversal"
1133 # define wxUSE_CARET 1
1135 # endif /* wxUSE_CARET */
1137 # if !wxUSE_SCROLLBAR
1138 # ifdef wxABORT_ON_CONFIG_ERROR
1139 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
1141 # undef wxUSE_SCROLLBAR
1142 # define wxUSE_SCROLLBAR 1
1144 # endif /* wxUSE_SCROLLBAR */
1145 # endif /* wxUSE_TEXTCTRL */
1146 #endif /* __WXUNIVERSAL__ */
1148 /* wxGTK-specific dependencies */
1150 # ifndef __WXUNIVERSAL__
1151 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1152 # ifdef wxABORT_ON_CONFIG_ERROR
1153 # error "MDI requires wxUSE_MENUS in wxGTK"
1156 # define wxUSE_MENUS 1
1159 # endif /* !__WXUNIVERSAL__ */
1163 # ifdef wxABORT_ON_CONFIG_ERROR
1164 # error "wxJoystick requires threads in wxGTK"
1166 # undef wxUSE_JOYSTICK
1167 # define wxUSE_JOYSTICK 0
1171 #endif /* wxGTK && !wxUniv */
1173 /* wxMGL-specific dependencies */
1176 # error "wxMGL requires wxUSE_PALETTE=1"
1180 /* Hopefully we can emulate these dialogs in due course */
1181 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
1182 # ifdef wxUSE_COLOURDLG
1183 # undef wxUSE_COLOURDLG
1184 # define wxUSE_COLOURDLG 0
1186 #endif /* __SMARTPHONE__ && __WXWINCE__ */
1189 /* generic controls dependencies */
1190 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1191 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1192 /* all common controls are needed by these dialogs */
1193 # if !defined(wxUSE_CHOICE) || \
1194 !defined(wxUSE_TEXTCTRL) || \
1195 !defined(wxUSE_BUTTON) || \
1196 !defined(wxUSE_CHECKBOX) || \
1197 !defined(wxUSE_STATTEXT)
1198 # ifdef wxABORT_ON_CONFIG_ERROR
1199 # error "These common controls are needed by common dialogs"
1201 # undef wxUSE_CHOICE
1202 # define wxUSE_CHOICE 1
1203 # undef wxUSE_TEXTCTRL
1204 # define wxUSE_TEXTCTRL 1
1205 # undef wxUSE_BUTTON
1206 # define wxUSE_BUTTON 1
1207 # undef wxUSE_CHECKBOX
1208 # define wxUSE_CHECKBOX 1
1209 # undef wxUSE_STATTEXT
1210 # define wxUSE_STATTEXT 1
1214 #endif /* !wxMSW || wxUniv */
1216 /* common dependencies */
1217 #if wxUSE_CALENDARCTRL
1218 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1219 # ifdef wxABORT_ON_CONFIG_ERROR
1220 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1222 # undef wxUSE_SPINBTN
1223 # undef wxUSE_COMBOBOX
1224 # define wxUSE_SPINBTN 1
1225 # define wxUSE_COMBOBOX 1
1229 # if !wxUSE_DATETIME
1230 # ifdef wxABORT_ON_CONFIG_ERROR
1231 # error "wxCalendarCtrl requires wxUSE_DATETIME"
1233 # undef wxUSE_DATETIME
1234 # define wxUSE_DATETIME 1
1237 #endif /* wxUSE_CALENDARCTRL */
1239 #if wxUSE_DATEPICKCTRL
1240 # if !wxUSE_DATETIME
1241 # ifdef wxABORT_ON_CONFIG_ERROR
1242 # error "wxDatePickerCtrl requires wxUSE_DATETIME"
1244 # undef wxUSE_DATETIME
1245 # define wxUSE_DATETIME 1
1248 #endif /* wxUSE_DATEPICKCTRL */
1250 #if wxUSE_CHECKLISTBOX
1252 # ifdef wxABORT_ON_CONFIG_ERROR
1253 # error "wxCheckListBox requires wxListBox"
1255 # undef wxUSE_LISTBOX
1256 # define wxUSE_LISTBOX 1
1259 #endif /* wxUSE_CHECKLISTBOX */
1263 # ifdef wxABORT_ON_CONFIG_ERROR
1264 # error "Choice dialogs requires wxListBox"
1266 # undef wxUSE_LISTBOX
1267 # define wxUSE_LISTBOX 1
1270 #endif /* wxUSE_CHOICEDLG */
1273 # if !wxUSE_BMPBUTTON
1274 # ifdef wxABORT_ON_CONFIG_ERROR
1275 # error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1277 # undef wxUSE_BMPBUTTON
1278 # define wxUSE_BMPBUTTON 1
1282 # if !wxUSE_CHOICEDLG
1283 # ifdef wxABORT_ON_CONFIG_ERROR
1284 # error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1286 # undef wxUSE_CHOICEDLG
1287 # define wxUSE_CHOICEDLG 1
1290 #endif /* wxUSE_HELP */
1292 #if wxUSE_WXHTML_HELP
1293 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
1294 # ifdef wxABORT_ON_CONFIG_ERROR
1295 # error "Built in help controller can't be compiled"
1298 # define wxUSE_HELP 1
1300 # define wxUSE_HTML 1
1301 # undef wxUSE_COMBOBOX
1302 # define wxUSE_COMBOBOX 1
1303 # undef wxUSE_NOTEBOOK
1304 # define wxUSE_NOTEBOOK 1
1305 # undef wxUSE_SPINCTRL
1306 # define wxUSE_SPINCTRL 1
1309 #endif /* wxUSE_WXHTML_HELP */
1313 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1314 user explicitly wants this and disable all other features that require
1317 # if wxUSE_DRAGIMAGE
1318 # ifdef wxABORT_ON_CONFIG_ERROR
1319 # error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1321 # undef wxUSE_DRAGIMAGE
1322 # define wxUSE_DRAGIMAGE 0
1327 # ifdef wxABORT_ON_CONFIG_ERROR
1328 # error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1330 # undef wxUSE_LIBPNG
1331 # define wxUSE_LIBPNG 0
1336 # ifdef wxABORT_ON_CONFIG_ERROR
1337 # error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1339 # undef wxUSE_LIBJPEG
1340 # define wxUSE_LIBJPEG 0
1345 # ifdef wxABORT_ON_CONFIG_ERROR
1346 # error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1348 # undef wxUSE_LIBTIFF
1349 # define wxUSE_LIBTIFF 0
1354 # ifdef wxABORT_ON_CONFIG_ERROR
1355 # error "wxUSE_GIF requires wxUSE_IMAGE"
1358 # define wxUSE_GIF 0
1363 # ifdef wxABORT_ON_CONFIG_ERROR
1364 # error "wxUSE_PNM requires wxUSE_IMAGE"
1367 # define wxUSE_PNM 0
1372 # ifdef wxABORT_ON_CONFIG_ERROR
1373 # error "wxUSE_PCX requires wxUSE_IMAGE"
1376 # define wxUSE_PCX 0
1381 # ifdef wxABORT_ON_CONFIG_ERROR
1382 # error "wxUSE_IFF requires wxUSE_IMAGE"
1385 # define wxUSE_IFF 0
1390 # ifdef wxABORT_ON_CONFIG_ERROR
1391 # error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1393 # undef wxUSE_TOOLBAR
1394 # define wxUSE_TOOLBAR 0
1399 # ifdef wxABORT_ON_CONFIG_ERROR
1400 # error "wxUSE_XPM requires wxUSE_IMAGE"
1403 # define wxUSE_XPM 0
1407 #endif /* !wxUSE_IMAGE */
1409 #if wxUSE_DOC_VIEW_ARCHITECTURE
1411 # ifdef wxABORT_ON_CONFIG_ERROR
1412 # error "DocView requires wxUSE_MENUS"
1415 # define wxUSE_MENUS 1
1419 # if !wxUSE_CHOICEDLG
1420 # ifdef wxABORT_ON_CONFIG_ERROR
1421 # error "DocView requires wxUSE_CHOICEDLG"
1423 # undef wxUSE_CHOICEDLG
1424 # define wxUSE_CHOICEDLG 1
1428 # if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1429 # ifdef wxABORT_ON_CONFIG_ERROR
1430 # error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1432 # undef wxUSE_STREAMS
1433 # define wxUSE_STREAMS 1
1436 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1438 #if wxUSE_PRINTING_ARCHITECTURE
1439 # if !wxUSE_COMBOBOX
1440 # ifdef wxABORT_ON_CONFIG_ERROR
1441 # error "Print dialog requires wxUSE_COMBOBOX"
1443 # undef wxUSE_COMBOBOX
1444 # define wxUSE_COMBOBOX 1
1447 #endif /* wxUSE_PRINTING_ARCHITECTURE */
1449 #if wxUSE_MDI_ARCHITECTURE
1451 # ifdef wxABORT_ON_CONFIG_ERROR
1452 # error "MDI requires wxUSE_MDI"
1455 # define wxUSE_MDI 1
1459 # if !wxUSE_DOC_VIEW_ARCHITECTURE
1460 # ifdef wxABORT_ON_CONFIG_ERROR
1461 # error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1463 # undef wxUSE_DOC_VIEW_ARCHITECTURE
1464 # define wxUSE_DOC_VIEW_ARCHITECTURE 1
1467 #endif /* wxUSE_MDI_ARCHITECTURE */
1470 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1471 # ifdef wxABORT_ON_CONFIG_ERROR
1472 # error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1474 # undef wxUSE_FILEDLG
1475 # define wxUSE_FILEDLG 1
1478 #endif /* wxUSE_FILEDLG */
1480 #if !wxUSE_GAUGE || !wxUSE_BUTTON
1481 # if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
1482 # ifdef wxABORT_ON_CONFIG_ERROR
1483 # error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
1486 # undef wxUSE_BUTTON
1487 # define wxUSE_GAUGE 1
1488 # define wxUSE_BUTTON 1
1491 #endif /* !wxUSE_GAUGE */
1494 # if wxUSE_FONTDLG || \
1496 wxUSE_CHOICEDLG || \
1497 wxUSE_NUMBERDLG || \
1500 wxUSE_STARTUP_TIPS || \
1502 # ifdef wxABORT_ON_CONFIG_ERROR
1503 # error "Common and generic dialogs require wxUSE_BUTTON"
1505 # undef wxUSE_BUTTON
1506 # define wxUSE_BUTTON 1
1509 #endif /* !wxUSE_BUTTON */
1512 # if wxUSE_TOOLBAR_NATIVE
1513 # ifdef wxABORT_ON_CONFIG_ERROR
1514 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1516 # undef wxUSE_TOOLBAR_NATIVE
1517 # define wxUSE_TOOLBAR_NATIVE 0
1521 # if wxUSE_TOOLBAR_SIMPLE
1522 # ifdef wxABORT_ON_CONFIG_ERROR
1523 # error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_SIMPLE is set to 1"
1525 # undef wxUSE_TOOLBAR_SIMPLE
1526 # define wxUSE_TOOLBAR_SIMPLE 0
1532 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1533 # ifdef wxABORT_ON_CONFIG_ERROR
1534 # error "wxImageList must be compiled as well"
1536 # undef wxUSE_IMAGLIST
1537 # define wxUSE_IMAGLIST 1
1540 #endif /* !wxUSE_IMAGLIST */
1543 # ifdef wxABORT_ON_CONFIG_ERROR
1544 /* FIXME: should compile without it, of course, but doesn't */
1545 # error "wxMessageBox is always needed"
1547 # undef wxUSE_MSGDLG
1548 # define wxUSE_MSGDLG 1
1553 # if !wxUSE_RADIOBTN
1554 # ifdef wxABORT_ON_CONFIG_ERROR
1555 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1557 # undef wxUSE_RADIOBTN
1558 # define wxUSE_RADIOBTN 1
1561 # if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1562 # ifdef wxABORT_ON_CONFIG_ERROR
1563 # error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1565 # undef wxUSE_STATBOX
1566 # define wxUSE_STATBOX 1
1569 #endif /* wxUSE_RADIOBOX */
1572 # if !wxUSE_TEXTCTRL
1573 # ifdef wxABORT_ON_CONFIG_ERROR
1574 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1576 # undef wxUSE_TEXTCTRL
1577 # define wxUSE_TEXTCTRL 1
1580 #endif /* wxUSE_LOGWINDOW */
1582 #if wxUSE_LOG_DIALOG
1583 # if !wxUSE_LISTCTRL || !wxUSE_BUTTON
1584 # ifdef wxABORT_ON_CONFIG_ERROR
1585 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
1587 # undef wxUSE_LISTCTRL
1588 # define wxUSE_LISTCTRL 1
1589 # undef wxUSE_BUTTON
1590 # define wxUSE_BUTTON 1
1593 #endif /* wxUSE_LOG_DIALOG */
1595 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
1596 # ifdef wxABORT_ON_CONFIG_ERROR
1597 # error "wxClipboard requires wxDataObject"
1599 # undef wxUSE_DATAOBJ
1600 # define wxUSE_DATAOBJ 1
1602 #endif /* wxUSE_CLIPBOARD */
1604 #if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1605 # ifdef wxABORT_ON_CONFIG_ERROR
1606 # error "wxr resources require PrologIO"
1608 # undef wxUSE_PROLOGIO
1609 # define wxUSE_PROLOGIO 1
1611 #endif /* wxUSE_WX_RESOURCES */
1613 #if wxUSE_XRC && !wxUSE_XML
1614 # ifdef wxABORT_ON_CONFIG_ERROR
1615 # error "wxUSE_XRC requires wxUSE_XML"
1618 # define wxUSE_XRC 0
1620 #endif /* wxUSE_XRC */
1622 #if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1623 # ifdef wxABORT_ON_CONFIG_ERROR
1624 # error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1626 # undef wxUSE_SOCKETS
1627 # define wxUSE_SOCKETS 0
1629 #endif /* wxUSE_SOCKETS */
1631 #endif /* wxUSE_GUI */