]>
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@wxwindows.org>
9 * Licence: wxWindows license
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
15 this global setting determintes what should we do if the setting FOO
16 requires BAR and BAR is not set: we can either silently define BAR
17 (default, recommended) or give an error and abort (mainly useful for
20 #define wxABORT_ON_CONFIG_ERROR
23 all these tests are for GUI onlu
28 all of the settings tested below must be defined or we'd get an error from
29 preprocessor about invalid integer expression
33 # ifdef wxABORT_ON_CONFIG_ERROR
34 # error "wxUSE_ACCEL must be defined."
36 # define wxUSE_ACCEL 0
38 #endif /* !defined(wxUSE_ACCEL) */
40 #ifndef wxUSE_BMPBUTTON
41 # ifdef wxABORT_ON_CONFIG_ERROR
42 # error "wxUSE_BMPBUTTON must be defined."
44 # define wxUSE_BMPBUTTON 0
46 #endif /* !defined(wxUSE_BMPBUTTON) */
49 # ifdef wxABORT_ON_CONFIG_ERROR
50 # error "wxUSE_BUTTON must be defined."
52 # define wxUSE_BUTTON 0
54 #endif /* !defined(wxUSE_BUTTON) */
56 #ifndef wxUSE_CALENDARCTRL
57 # ifdef wxABORT_ON_CONFIG_ERROR
58 # error "wxUSE_CALENDARCTRL must be defined."
60 # define wxUSE_CALENDARCTRL 0
62 #endif /* !defined(wxUSE_CALENDARCTRL) */
65 # ifdef wxABORT_ON_CONFIG_ERROR
66 # error "wxUSE_CARET must be defined."
68 # define wxUSE_CARET 0
70 #endif /* !defined(wxUSE_CARET) */
72 #ifndef wxUSE_CHECKBOX
73 # ifdef wxABORT_ON_CONFIG_ERROR
74 # error "wxUSE_CHECKBOX must be defined."
76 # define wxUSE_CHECKBOX 0
78 #endif /* !defined(wxUSE_CHECKBOX) */
80 #ifndef wxUSE_CHECKLISTBOX
81 # ifdef wxABORT_ON_CONFIG_ERROR
82 # error "wxUSE_CHECKLISTBOX must be defined."
84 # define wxUSE_CHECKLISTBOX 0
86 #endif /* !defined(wxUSE_CHECKLISTBOX) */
89 # ifdef wxABORT_ON_CONFIG_ERROR
90 # error "wxUSE_CHOICE must be defined."
92 # define wxUSE_CHOICE 0
94 #endif /* !defined(wxUSE_CHOICE) */
96 #ifndef wxUSE_CHOICEDLG
97 # ifdef wxABORT_ON_CONFIG_ERROR
98 # error "wxUSE_CHOICEDLG must be defined."
100 # define wxUSE_CHOICEDLG 0
102 #endif /* !defined(wxUSE_CHOICEDLG) */
104 #ifndef wxUSE_CLIPBOARD
105 # ifdef wxABORT_ON_CONFIG_ERROR
106 # error "wxUSE_CLIPBOARD must be defined."
108 # define wxUSE_CLIPBOARD 0
110 #endif /* !defined(wxUSE_CLIPBOARD) */
112 #ifndef wxUSE_COLOURDLG
113 # ifdef wxABORT_ON_CONFIG_ERROR
114 # error "wxUSE_COLOURDLG must be defined."
116 # define wxUSE_COLOURDLG 0
118 #endif /* !defined(wxUSE_COLOURDLG) */
120 #ifndef wxUSE_COMBOBOX
121 # ifdef wxABORT_ON_CONFIG_ERROR
122 # error "wxUSE_COMBOBOX must be defined."
124 # define wxUSE_COMBOBOX 0
126 #endif /* !defined(wxUSE_COMBOBOX) */
128 #ifndef wxUSE_DATAOBJ
129 # ifdef wxABORT_ON_CONFIG_ERROR
130 # error "wxUSE_DATAOBJ must be defined."
132 # define wxUSE_DATAOBJ 0
134 #endif /* !defined(wxUSE_DATAOBJ) */
136 #ifndef wxUSE_DOC_VIEW_ARCHITECTURE
137 # ifdef wxABORT_ON_CONFIG_ERROR
138 # error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
140 # define wxUSE_DOC_VIEW_ARCHITECTURE 0
142 #endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
144 #ifndef wxUSE_FILEDLG
145 # ifdef wxABORT_ON_CONFIG_ERROR
146 # error "wxUSE_FILEDLG must be defined."
148 # define wxUSE_FILEDLG 0
150 #endif /* !defined(wxUSE_FILEDLG) */
152 #ifndef wxUSE_FONTDLG
153 # ifdef wxABORT_ON_CONFIG_ERROR
154 # error "wxUSE_FONTDLG must be defined."
156 # define wxUSE_FONTDLG 0
158 #endif /* !defined(wxUSE_FONTDLG) */
160 #ifndef wxUSE_FONTMAP
161 # ifdef wxABORT_ON_CONFIG_ERROR
162 # error "wxUSE_FONTMAP must be defined."
164 # define wxUSE_FONTMAP 0
166 #endif /* !defined(wxUSE_FONTMAP) */
169 # ifdef wxABORT_ON_CONFIG_ERROR
170 # error "wxUSE_GAUGE must be defined."
172 # define wxUSE_GAUGE 0
174 #endif /* !defined(wxUSE_GAUGE) */
177 # ifdef wxABORT_ON_CONFIG_ERROR
178 # error "wxUSE_GRID must be defined."
180 # define wxUSE_GRID 0
182 #endif /* !defined(wxUSE_GRID) */
185 # ifdef wxABORT_ON_CONFIG_ERROR
186 # error "wxUSE_HELP must be defined."
188 # define wxUSE_HELP 0
190 #endif /* !defined(wxUSE_HELP) */
193 # ifdef wxABORT_ON_CONFIG_ERROR
194 # error "wxUSE_HTML must be defined."
196 # define wxUSE_HTML 0
198 #endif /* !defined(wxUSE_HTML) */
200 #ifndef wxUSE_IMAGLIST
201 # ifdef wxABORT_ON_CONFIG_ERROR
202 # error "wxUSE_IMAGLIST must be defined."
204 # define wxUSE_IMAGLIST 0
206 #endif /* !defined(wxUSE_IMAGLIST) */
208 #ifndef wxUSE_LISTBOX
209 # ifdef wxABORT_ON_CONFIG_ERROR
210 # error "wxUSE_LISTBOX must be defined."
212 # define wxUSE_LISTBOX 0
214 #endif /* !defined(wxUSE_LISTBOX) */
216 #ifndef wxUSE_LISTCTRL
217 # ifdef wxABORT_ON_CONFIG_ERROR
218 # error "wxUSE_LISTCTRL must be defined."
220 # define wxUSE_LISTCTRL 0
222 #endif /* !defined(wxUSE_LISTCTRL) */
225 # ifdef wxABORT_ON_CONFIG_ERROR
226 # error "wxUSE_LOG must be defined."
230 #endif /* !defined(wxUSE_LOG) */
233 # ifdef wxABORT_ON_CONFIG_ERROR
234 # error "wxUSE_LOGGUI must be defined."
236 # define wxUSE_LOGGUI 0
238 #endif /* !defined(wxUSE_LOGGUI) */
240 #ifndef wxUSE_LOGWINDOW
241 # ifdef wxABORT_ON_CONFIG_ERROR
242 # error "wxUSE_LOGWINDOW must be defined."
244 # define wxUSE_LOGWINDOW 0
246 #endif /* !defined(wxUSE_LOGWINDOW) */
250 #ifndef wxUSE_LOG_DIALOG
251 # ifdef wxABORT_ON_CONFIG_ERROR
252 # error "wxUSE_LOG_DIALOG must be defined."
254 # define wxUSE_LOG_DIALOG 0
256 #endif /* !defined(wxUSE_LOG_DIALOG) */
259 #ifndef wxUSE_MDI_ARCHITECTURE
260 # ifdef wxABORT_ON_CONFIG_ERROR
261 # error "wxUSE_MDI_ARCHITECTURE must be defined."
263 # define wxUSE_MDI_ARCHITECTURE 0
265 #endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
268 # ifdef wxABORT_ON_CONFIG_ERROR
269 # error "wxUSE_MENUS must be defined."
271 # define wxUSE_MENUS 0
273 #endif /* !defined(wxUSE_MENUS) */
275 #ifndef wxUSE_MIMETYPE
276 # ifdef wxABORT_ON_CONFIG_ERROR
277 # error "wxUSE_MIMETYPE must be defined."
279 # define wxUSE_MIMETYPE 0
281 #endif /* !defined(wxUSE_MIMETYPE) */
284 # ifdef wxABORT_ON_CONFIG_ERROR
285 # error "wxUSE_MSGDLG must be defined."
287 # define wxUSE_MSGDLG 0
289 #endif /* !defined(wxUSE_MSGDLG) */
291 #ifndef wxUSE_NEW_GRID
292 # ifdef wxABORT_ON_CONFIG_ERROR
293 # error "wxUSE_NEW_GRID must be defined."
295 # define wxUSE_NEW_GRID 0
297 #endif /* !defined(wxUSE_NEW_GRID) */
299 #ifndef wxUSE_NOTEBOOK
300 # ifdef wxABORT_ON_CONFIG_ERROR
301 # error "wxUSE_NOTEBOOK must be defined."
303 # define wxUSE_NOTEBOOK 0
305 #endif /* !defined(wxUSE_NOTEBOOK) */
307 #ifndef wxUSE_POPUPWIN
308 # ifdef wxABORT_ON_CONFIG_ERROR
309 # error "wxUSE_POPUPWIN must be defined."
311 # define wxUSE_POPUPWIN 0
313 #endif /* !defined(wxUSE_POPUPWIN) */
315 #ifndef wxUSE_PRINTING_ARCHITECTURE
316 # ifdef wxABORT_ON_CONFIG_ERROR
317 # error "wxUSE_PRINTING_ARCHITECTURE must be defined."
319 # define wxUSE_PRINTING_ARCHITECTURE 0
321 #endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
323 #ifndef wxUSE_RADIOBOX
324 # ifdef wxABORT_ON_CONFIG_ERROR
325 # error "wxUSE_RADIOBOX must be defined."
327 # define wxUSE_RADIOBOX 0
329 #endif /* !defined(wxUSE_RADIOBOX) */
331 #ifndef wxUSE_RADIOBTN
332 # ifdef wxABORT_ON_CONFIG_ERROR
333 # error "wxUSE_RADIOBTN must be defined."
335 # define wxUSE_RADIOBTN 0
337 #endif /* !defined(wxUSE_RADIOBTN) */
340 # ifdef wxABORT_ON_CONFIG_ERROR
341 # error "wxUSE_SASH must be defined."
343 # define wxUSE_SASH 0
345 #endif /* !defined(wxUSE_SASH) */
347 #ifndef wxUSE_SCROLLBAR
348 # ifdef wxABORT_ON_CONFIG_ERROR
349 # error "wxUSE_SCROLLBAR must be defined."
351 # define wxUSE_SCROLLBAR 0
353 #endif /* !defined(wxUSE_SCROLLBAR) */
356 # ifdef wxABORT_ON_CONFIG_ERROR
357 # error "wxUSE_SLIDER must be defined."
359 # define wxUSE_SLIDER 0
361 #endif /* !defined(wxUSE_SLIDER) */
363 #ifndef wxUSE_SPINBTN
364 # ifdef wxABORT_ON_CONFIG_ERROR
365 # error "wxUSE_SPINBTN must be defined."
367 # define wxUSE_SPINBTN 0
369 #endif /* !defined(wxUSE_SPINBTN) */
371 #ifndef wxUSE_SPINCTRL
372 # ifdef wxABORT_ON_CONFIG_ERROR
373 # error "wxUSE_SPINCTRL must be defined."
375 # define wxUSE_SPINCTRL 0
377 #endif /* !defined(wxUSE_SPINCTRL) */
379 #ifndef wxUSE_SPLITTER
380 # ifdef wxABORT_ON_CONFIG_ERROR
381 # error "wxUSE_SPLITTER must be defined."
383 # define wxUSE_SPLITTER 0
385 #endif /* !defined(wxUSE_SPLITTER) */
387 #ifndef wxUSE_STATBMP
388 # ifdef wxABORT_ON_CONFIG_ERROR
389 # error "wxUSE_STATBMP must be defined."
391 # define wxUSE_STATBMP 0
393 #endif /* !defined(wxUSE_STATBMP) */
395 #ifndef wxUSE_STATBOX
396 # ifdef wxABORT_ON_CONFIG_ERROR
397 # error "wxUSE_STATBOX must be defined."
399 # define wxUSE_STATBOX 0
401 #endif /* !defined(wxUSE_STATBOX) */
403 #ifndef wxUSE_STATLINE
404 # ifdef wxABORT_ON_CONFIG_ERROR
405 # error "wxUSE_STATLINE must be defined."
407 # define wxUSE_STATLINE 0
409 #endif /* !defined(wxUSE_STATLINE) */
411 #ifndef wxUSE_STATTEXT
412 # ifdef wxABORT_ON_CONFIG_ERROR
413 # error "wxUSE_STATTEXT must be defined."
415 # define wxUSE_STATTEXT 0
417 #endif /* !defined(wxUSE_STATTEXT) */
419 #ifndef wxUSE_STATUSBAR
420 # ifdef wxABORT_ON_CONFIG_ERROR
421 # error "wxUSE_STATUSBAR must be defined."
423 # define wxUSE_STATUSBAR 0
425 #endif /* !defined(wxUSE_STATUSBAR) */
427 #ifndef wxUSE_STOPWATCH
428 # ifdef wxABORT_ON_CONFIG_ERROR
429 # error "wxUSE_STOPWATCH must be defined."
431 # define wxUSE_STOPWATCH 0
433 #endif /* !defined(wxUSE_STOPWATCH) */
435 #ifndef wxUSE_TAB_DIALOG
436 # ifdef wxABORT_ON_CONFIG_ERROR
437 # error "wxUSE_TAB_DIALOG must be defined."
439 # define wxUSE_TAB_DIALOG 0
441 #endif /* !defined(wxUSE_TAB_DIALOG) */
443 #ifndef wxUSE_TEXTCTRL
444 # ifdef wxABORT_ON_CONFIG_ERROR
445 # error "wxUSE_TEXTCTRL must be defined."
447 # define wxUSE_TEXTCTRL 0
449 #endif /* !defined(wxUSE_TEXTCTRL) */
451 #ifndef wxUSE_TOOLBAR
452 # ifdef wxABORT_ON_CONFIG_ERROR
453 # error "wxUSE_TOOLBAR must be defined."
455 # define wxUSE_TOOLBAR 0
457 #endif /* !defined(wxUSE_TOOLBAR) */
459 #ifndef wxUSE_TOOLTIPS
460 # ifdef wxABORT_ON_CONFIG_ERROR
461 # error "wxUSE_TOOLTIPS must be defined."
463 # define wxUSE_TOOLTIPS 0
465 #endif /* !defined(wxUSE_TOOLTIPS) */
467 #ifndef wxUSE_TREECTRL
468 # ifdef wxABORT_ON_CONFIG_ERROR
469 # error "wxUSE_TREECTRL must be defined."
471 # define wxUSE_TREECTRL 0
473 #endif /* !defined(wxUSE_TREECTRL) */
475 #ifndef wxUSE_WXHTML_HELP
476 # ifdef wxABORT_ON_CONFIG_ERROR
477 # error "wxUSE_WXHTML_HELP must be defined."
479 # define wxUSE_WXHTML_HELP 0
481 #endif /* !defined(wxUSE_WXHTML_HELP) */
484 check consistency of the settings
486 #if wxUSE_BUTTON || \
487 wxUSE_CALENDARCTRL || \
492 wxUSE_CHECKLISTBOX || \
515 # ifdef wxABORT_ON_CONFIG_ERROR
516 # error "wxUSE_CONTROLS unset but some controls used"
518 # undef wxUSE_CONTROLS
519 # define wxUSE_CONTROLS 1
522 #endif /* controls */
524 /* wxUniv-specific dependencies */
525 #if defined(__WXUNIVERSAL__)
526 # if (wxUSE_COMBOBOX || wxUSE_MENUS) && !wxUSE_POPUPWIN
527 # ifdef wxABORT_ON_CONFIG_ERROR
528 # error "wxUSE_POPUPWIN must be defined to use comboboxes/menus"
530 # undef wxUSE_POPUPWIN
531 # define wxUSE_POPUPWIN 1
537 # ifdef wxABORT_ON_CONFIG_ERROR
538 # error "wxComboBox requires wxListBox in wxUniversal"
540 # undef wxUSE_LISTBOX
541 # define wxUSE_LISTBOX 1
544 # endif /* wxUSE_COMBOBOX */
548 # ifdef wxABORT_ON_CONFIG_ERROR
549 # error "wxUSE_RADIOBTN requires wxUSE_CHECKBOX in wxUniversal"
551 # undef wxUSE_CHECKBOX
552 # define wxUSE_CHECKBOX 1
555 # endif /* wxUSE_RADIOBTN */
559 # ifdef wxABORT_ON_CONFIG_ERROR
560 # error "wxTextCtrl requires wxCaret in wxUniversal"
563 # define wxUSE_CARET 1
565 # endif /* wxUSE_CARET */
567 # if !wxUSE_SCROLLBAR
568 # ifdef wxABORT_ON_CONFIG_ERROR
569 # error "wxTextCtrl requires wxScrollBar in wxUniversal"
571 # undef wxUSE_SCROLLBAR
572 # define wxUSE_SCROLLBAR 1
574 # endif /* wxUSE_SCROLLBAR */
575 # endif /* wxUSE_TEXTCTRL */
576 #endif /* __WXUNIVERSAL__ */
578 /* wxGTK-specific dependencies */
579 #if defined(__WXGTK__) && !defined(__WXUNIVERSAL__)
580 # if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
581 # ifdef wxABORT_ON_CONFIG_ERROR
582 # error "MDI requires wxUSE_MENUS in wxGTK"
585 # define wxUSE_MENUS 1
588 #endif /* wxGTK && !wxUniv */
590 /* wxMotif-specific dependencies */
591 #if defined(__WXMOTIF__) && wxUSE_NOTEBOOK && !wxUSE_TAB_DIALOG
592 # undef wxUSE_TAB_DIALOG
593 # define wxUSE_TAB_DIALOG 1
595 #if defined(__WXMOTIF__) && wxUSE_TOGGLEBTN
596 # undef wxUSE_TOGGLEBTN
597 # define wxUSE_TOGGLEBTN 0
600 /* generic controls dependencies */
601 #if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
602 # if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
603 /* all common controls are needed by these dialogs */
604 # if !defined(wxUSE_CHOICE) || \
605 !defined(wxUSE_TEXTCTRL) || \
606 !defined(wxUSE_BUTTON) || \
607 !defined(wxUSE_CHECKBOX) || \
608 !defined(wxUSE_STATTEXT)
609 # ifdef wxABORT_ON_CONFIG_ERROR
610 # error "These common controls are needed by common dialogs"
613 # define wxUSE_CHOICE 1
614 # undef wxUSE_TEXTCTRL
615 # define wxUSE_TEXTCTRL 1
617 # define wxUSE_BUTTON 1
618 # undef wxUSE_CHECKBOX
619 # define wxUSE_CHECKBOX 1
620 # undef wxUSE_STATTEXT
621 # define wxUSE_STATTEXT 1
625 #endif /* !wxMSW || wxUniv */
627 /* common dependencies */
628 #if wxUSE_CALENDARCTRL
629 # if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
630 # ifdef wxABORT_ON_CONFIG_ERROR
631 # error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
633 # undef wxUSE_SPINBTN
634 # undef wxUSE_COMBOBOX
635 # define wxUSE_SPINBTN 1
636 # define wxUSE_COMBOBOX 1
639 #endif /* wxUSE_CALENDARCTRL */
641 #if wxUSE_CHECKLISTBOX
643 # ifdef wxABORT_ON_CONFIG_ERROR
644 # error "wxCheckListBox requires wxListBox"
646 # undef wxUSE_LISTBOX
647 # define wxUSE_LISTBOX 1
650 #endif /* wxUSE_RADIOBTN */
652 #if wxUSE_WXHTML_HELP
653 # if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX
654 # ifdef wxABORT_ON_CONFIG_ERROR
655 # error "Built in help controller can't be compiled"
658 # define wxUSE_HELP 1
660 # define wxUSE_HTML 1
661 # undef wxUSE_COMBOBOX
662 # define wxUSE_COMBOBOX 1
665 #endif /* wxUSE_WXHTML_HELP */
667 #if wxUSE_PRINTING_ARCHITECTURE
669 # ifdef wxABORT_ON_CONFIG_ERROR
670 # error "Print dialog requires wxUSE_COMBOBOX"
672 # undef wxUSE_COMBOBOX
673 # define wxUSE_COMBOBOX 1
676 #endif /* wxUSE_PRINTING_ARCHITECTURE */
678 #if wxUSE_DOC_VIEW_ARCHITECTURE
680 # ifdef wxABORT_ON_CONFIG_ERROR
681 # error "DocView requires wxUSE_MENUS"
684 # define wxUSE_MENUS 1
687 #endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
690 # if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_HTML
691 # ifdef wxABORT_ON_CONFIG_ERROR
692 # error "wxFileDialog must be compiled as well"
694 # undef wxUSE_FILEDLG
695 # define wxUSE_FILEDLG 1
698 #endif /* wxUSE_FILEDLG */
701 # if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
702 # ifdef wxABORT_ON_CONFIG_ERROR
703 # error "wxImageList must be compiled as well"
705 # undef wxUSE_IMAGLIST
706 # define wxUSE_IMAGLIST 1
709 #endif /* !wxUSE_IMAGLIST */
712 # ifdef wxABORT_ON_CONFIG_ERROR
713 /* FIXME: should compile without it, of course, but doesn't */
714 # error "wxMessageBox is always needed"
717 # define wxUSE_MSGDLG 1
722 # if !wxUSE_RADIOBTN || !wxUSE_STATBOX
723 # ifdef wxABORT_ON_CONFIG_ERROR
724 # error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN and wxUSE_STATBOX"
726 # undef wxUSE_RADIOBTN
727 # undef wxUSE_STATBOX
728 # define wxUSE_RADIOBTN 1
729 # define wxUSE_STATBOX 1
732 #endif /* wxUSE_RADIOBOX */
736 # ifdef wxABORT_ON_CONFIG_ERROR
737 # error "wxUSE_STOPWATCH requires wxUSE_LONGLONG"
739 # undef wxUSE_LONGLONG
740 # define wxUSE_LONGLONG 1
743 #endif /* wxUSE_STOPWATCH */
747 # ifdef wxABORT_ON_CONFIG_ERROR
748 # error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
750 # undef wxUSE_TEXTCTRL
751 # define wxUSE_TEXTCTRL 1
754 #endif /* wxUSE_LOGWINDOW */
758 # ifdef wxABORT_ON_CONFIG_ERROR
759 # error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL"
761 # undef wxUSE_LISTCTRL
762 # define wxUSE_LISTCTRL 1
765 #endif /* wxUSE_LOG_DIALOG */
767 /* I wonder if we shouldn't just remove all occurrences of
768 wxUSE_DYNAMIC_CLASSES from the sources? */
769 #if !defined(wxUSE_DYNAMIC_CLASSES) || !wxUSE_DYNAMIC_CLASSES
770 # ifdef wxABORT_ON_CONFIG_ERROR
771 # error "wxUSE_DYNAMIC_CLASSES must be defined as 1"
773 # undef wxUSE_DYNAMIC_CLASSES
774 # define wxUSE_DYNAMIC_CLASSES
776 #endif /* wxUSE_DYNAMIC_CLASSES */
778 #if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
779 # ifdef wxABORT_ON_CONFIG_ERROR
780 # error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
782 # undef wxUSE_TEXTFILE
783 # define wxUSE_TEXTFILE 1
785 #endif /* wxUSE_MIMETYPE */
787 #if wxUSE_TEXTFILE && !wxUSE_FILE
788 # ifdef wxABORT_ON_CONFIG_ERROR
789 # error "wxUSE_TEXTFILE requires wxUSE_FILE"
792 # define wxUSE_FILE 1
794 #endif /* wxUSE_TEXTFILE */
796 #if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
797 # ifdef wxABORT_ON_CONFIG_ERROR
798 # error "wxClipboard requires wxDataObject"
800 # undef wxUSE_DATAOBJ
801 # define wxUSE_DATAOBJ 1
803 #endif /* wxUSE_CLIPBOARD */
805 #endif /* wxUSE_GUI */