]> git.saurik.com Git - wxWidgets.git/blame - include/wx/chkconf.h
moved DoSetValue() to wxTextCtrlBase instead of having it in almost, but not quite...
[wxWidgets.git] / include / wx / chkconf.h
CommitLineData
b45f79ec
VZ
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 */
1e6feb95
VZ
11
12/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
01ebf752 14/*
b55c3716 15 Platform-specific checking.
01ebf752
JS
16 */
17
4055ed82 18#if defined(__WXPALMOS__)
ffecfa5a 19# include "wx/palmos/chkconf.h"
69dada2e
VZ
20#elif defined(__WXWINCE__)
21# include "wx/msw/wince/chkconf.h"
ffecfa5a 22#elif defined(__WXMSW__)
01ebf752
JS
23# include "wx/msw/chkconf.h"
24#elif defined(__WXMAC__)
25# include "wx/mac/chkconf.h"
cb7d7375
WS
26#elif defined(__OS2__)
27# include "wx/os2/chkconf.h"
b8af111f
WS
28#elif defined(__WXMGL__)
29# include "wx/mgl/chkconf.h"
b3c86150
VS
30#elif defined(__WXDFB__)
31# include "wx/dfb/chkconf.h"
b45f79ec 32#elif defined(__WXMOTIF__)
5c7c67fd 33# include "wx/motif/chkconf.h"
05024233
VS
34#elif defined(__WXX11__)
35# include "wx/x11/chkconf.h"
01ebf752
JS
36#endif
37
4353a8df
VZ
38#ifdef __WXUNIVERSAL__
39# include "wx/univ/chkconf.h"
40#endif
41
1e6feb95 42/*
730dfeb4 43 this global setting determines what should we do if the setting FOO
8a43eaec
VZ
44 requires BAR and BAR is not set: we can either silently unset FOO as well
45 (do this if you're trying to build the smallest possible library) or give an
46 error and abort (default as leads to least surprizing behaviour)
1e6feb95
VZ
47 */
48#define wxABORT_ON_CONFIG_ERROR
49
6962f34e
VZ
50/*
51 global features
52 */
53
54/* GUI build by default */
55#if !defined(wxUSE_GUI)
56# define wxUSE_GUI 1
57#endif /* !defined(wxUSE_GUI) */
58
1bbcb0d5
VZ
59/*
60 If we're compiling without support for threads/exceptions we have to
61 disable the corresponding features.
62 */
63#ifdef wxNO_THREADS
64# undef wxUSE_THREADS
65# define wxUSE_THREADS 0
66#endif /* wxNO_THREADS */
67
68#ifdef wxNO_EXCEPTIONS
69# undef wxUSE_EXCEPTIONS
70# define wxUSE_EXCEPTIONS 0
71#endif /* wxNO_EXCEPTIONS */
72
4652511f
VZ
73/* we also must disable exceptions if compiler doesn't support them */
74#if defined(_MSC_VER) && !defined(_CPPUNWIND)
75# undef wxUSE_EXCEPTIONS
76# define wxUSE_EXCEPTIONS 0
77#endif /* VC++ without exceptions support */
78
1bbcb0d5 79
1e6feb95 80/*
03169422 81 tests for non GUI features
e16514bf
VZ
82
83 please keep the options in alphabetical order!
03169422
RL
84 */
85
0c46d866 86#ifndef wxUSE_CRASHREPORT
7e0aee72
VZ
87 /* this one is special: as currently it is Windows-only, don't force it
88 to be defined on other platforms */
89# if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
0c46d866
VZ
90# error "wxUSE_CRASHREPORT must be defined."
91# else
92# define wxUSE_CRASHREPORT 0
93# endif
94#endif /* !defined(wxUSE_CRASHREPORT) */
95
03169422
RL
96#ifndef wxUSE_DYNLIB_CLASS
97# ifdef wxABORT_ON_CONFIG_ERROR
98# error "wxUSE_DYNLIB_CLASS must be defined."
99# else
100# define wxUSE_DYNLIB_CLASS 0
101# endif
102#endif /* !defined(wxUSE_DYNLIB_CLASS) */
103
4199367e
VZ
104#ifndef wxUSE_EXCEPTIONS
105# ifdef wxABORT_ON_CONFIG_ERROR
106# error "wxUSE_EXCEPTIONS must be defined."
107# else
108# define wxUSE_EXCEPTIONS 0
109# endif
110#endif /* !defined(wxUSE_EXCEPTIONS) */
111
c7f3eecc
VZ
112#ifndef wxUSE_FILESYSTEM
113# ifdef wxABORT_ON_CONFIG_ERROR
114# error "wxUSE_FILESYSTEM must be defined."
115# else
116# define wxUSE_FILESYSTEM 0
117# endif
118#endif /* !defined(wxUSE_FILESYSTEM) */
119
6fb17fd5 120/* don't give an error about this one yet, it's not fully implemented */
05815ab3 121#ifndef wxUSE_FSVOLUME
6fb17fd5 122# define wxUSE_FSVOLUME 0
05815ab3
VZ
123#endif /* !defined(wxUSE_FSVOLUME) */
124
03169422
RL
125#ifndef wxUSE_DYNAMIC_LOADER
126# ifdef wxABORT_ON_CONFIG_ERROR
127# error "wxUSE_DYNAMIC_LOADER must be defined."
128# else
129# define wxUSE_DYNAMIC_LOADER 0
130# endif
131#endif /* !defined(wxUSE_DYNAMIC_LOADER) */
132
a5d46b73
VZ
133#ifndef wxUSE_LOG
134# ifdef wxABORT_ON_CONFIG_ERROR
135# error "wxUSE_LOG must be defined."
136# else
137# define wxUSE_LOG 0
138# endif
139#endif /* !defined(wxUSE_LOG) */
140
141#ifndef wxUSE_LONGLONG
142# ifdef wxABORT_ON_CONFIG_ERROR
143# error "wxUSE_LONGLONG must be defined."
144# else
145# define wxUSE_LONGLONG 0
146# endif
147#endif /* !defined(wxUSE_LONGLONG) */
148
149#ifndef wxUSE_MIMETYPE
150# ifdef wxABORT_ON_CONFIG_ERROR
151# error "wxUSE_MIMETYPE must be defined."
152# else
153# define wxUSE_MIMETYPE 0
154# endif
155#endif /* !defined(wxUSE_MIMETYPE) */
156
0c46d866
VZ
157#ifndef wxUSE_ON_FATAL_EXCEPTION
158# ifdef wxABORT_ON_CONFIG_ERROR
159# error "wxUSE_ON_FATAL_EXCEPTION must be defined."
160# else
161# define wxUSE_ON_FATAL_EXCEPTION 0
162# endif
163#endif /* !defined(wxUSE_ON_FATAL_EXCEPTION) */
164
7a828c7f
VZ
165#ifndef wxUSE_PRINTF_POS_PARAMS
166# ifdef wxABORT_ON_CONFIG_ERROR
167# error "wxUSE_PRINTF_POS_PARAMS must be defined."
168# else
169# define wxUSE_PRINTF_POS_PARAMS 0
170# endif
171#endif /* !defined(wxUSE_PRINTF_POS_PARAMS) */
172
a5d46b73
VZ
173#ifndef wxUSE_PROTOCOL
174# ifdef wxABORT_ON_CONFIG_ERROR
175# error "wxUSE_PROTOCOL must be defined."
176# else
177# define wxUSE_PROTOCOL 0
178# endif
179#endif /* !defined(wxUSE_PROTOCOL) */
180
181/* we may not define wxUSE_PROTOCOL_XXX if wxUSE_PROTOCOL is set to 0 */
182#if !wxUSE_PROTOCOL
183# undef wxUSE_PROTOCOL_HTTP
184# undef wxUSE_PROTOCOL_FTP
185# undef wxUSE_PROTOCOL_FILE
186# define wxUSE_PROTOCOL_HTTP 0
187# define wxUSE_PROTOCOL_FTP 0
188# define wxUSE_PROTOCOL_FILE 0
189#endif /* wxUSE_PROTOCOL */
190
191#ifndef wxUSE_PROTOCOL_HTTP
192# ifdef wxABORT_ON_CONFIG_ERROR
193# error "wxUSE_PROTOCOL_HTTP must be defined."
194# else
195# define wxUSE_PROTOCOL_HTTP 0
196# endif
197#endif /* !defined(wxUSE_PROTOCOL_HTTP) */
198
199#ifndef wxUSE_PROTOCOL_FTP
200# ifdef wxABORT_ON_CONFIG_ERROR
201# error "wxUSE_PROTOCOL_FTP must be defined."
202# else
203# define wxUSE_PROTOCOL_FTP 0
204# endif
205#endif /* !defined(wxUSE_PROTOCOL_FTP) */
206
207#ifndef wxUSE_PROTOCOL_FILE
208# ifdef wxABORT_ON_CONFIG_ERROR
209# error "wxUSE_PROTOCOL_FILE must be defined."
210# else
211# define wxUSE_PROTOCOL_FILE 0
212# endif
213#endif /* !defined(wxUSE_PROTOCOL_FILE) */
214
215#ifndef wxUSE_REGEX
216# ifdef wxABORT_ON_CONFIG_ERROR
217# error "wxUSE_REGEX must be defined."
218# else
219# define wxUSE_REGEX 0
220# endif
221#endif /* !defined(wxUSE_REGEX) */
222
07158944
VZ
223#ifndef wxUSE_STDPATHS
224# ifdef wxABORT_ON_CONFIG_ERROR
225# error "wxUSE_STDPATHS must be defined."
226# else
227# define wxUSE_STDPATHS 1
228# endif
229#endif /* !defined(wxUSE_STDPATHS) */
230
27b0c286
VS
231#ifndef wxUSE_XML
232# ifdef wxABORT_ON_CONFIG_ERROR
233# error "wxUSE_XML must be defined."
234# else
235# define wxUSE_XML 0
236# endif
237#endif /* !defined(wxUSE_XML) */
238
a5d46b73
VZ
239#ifndef wxUSE_SOCKETS
240# ifdef wxABORT_ON_CONFIG_ERROR
241# error "wxUSE_SOCKETS must be defined."
242# else
243# define wxUSE_SOCKETS 0
244# endif
245#endif /* !defined(wxUSE_SOCKETS) */
246
247#ifndef wxUSE_STREAMS
248# ifdef wxABORT_ON_CONFIG_ERROR
249# error "wxUSE_STREAMS must be defined."
250# else
251# define wxUSE_STREAMS 0
252# endif
253#endif /* !defined(wxUSE_STREAMS) */
254
255#ifndef wxUSE_STOPWATCH
256# ifdef wxABORT_ON_CONFIG_ERROR
257# error "wxUSE_STOPWATCH must be defined."
258# else
259# define wxUSE_STOPWATCH 0
260# endif
261#endif /* !defined(wxUSE_STOPWATCH) */
262
263#ifndef wxUSE_TEXTBUFFER
264# ifdef wxABORT_ON_CONFIG_ERROR
265# error "wxUSE_TEXTBUFFER must be defined."
266# else
267# define wxUSE_TEXTBUFFER 0
268# endif
269#endif /* !defined(wxUSE_TEXTBUFFER) */
270
271#ifndef wxUSE_TEXTFILE
272# ifdef wxABORT_ON_CONFIG_ERROR
273# error "wxUSE_TEXTFILE must be defined."
274# else
275# define wxUSE_TEXTFILE 0
276# endif
277#endif /* !defined(wxUSE_TEXTFILE) */
278
279#ifndef wxUSE_UNICODE
280# ifdef wxABORT_ON_CONFIG_ERROR
281# error "wxUSE_UNICODE must be defined."
282# else
283# define wxUSE_UNICODE 0
284# endif
285#endif /* !defined(wxUSE_UNICODE) */
286
287#ifndef wxUSE_URL
288# ifdef wxABORT_ON_CONFIG_ERROR
289# error "wxUSE_URL must be defined."
290# else
291# define wxUSE_URL 0
292# endif
293#endif /* !defined(wxUSE_URL) */
294
ca5c6ac3
VZ
295#ifndef wxUSE_VARIANT
296# ifdef wxABORT_ON_CONFIG_ERROR
297# error "wxUSE_VARIANT must be defined."
298# else
299# define wxUSE_VARIANT 0
300# endif
301#endif /* wxUSE_VARIANT */
302
03169422
RL
303/*
304 all these tests are for GUI only
e16514bf
VZ
305
306 please keep the options in alphabetical order!
1e6feb95
VZ
307 */
308#if wxUSE_GUI
309
310/*
311 all of the settings tested below must be defined or we'd get an error from
312 preprocessor about invalid integer expression
313 */
314
9211cf3c
VZ
315#ifndef wxUSE_ABOUTDLG
316# ifdef wxABORT_ON_CONFIG_ERROR
317# error "wxUSE_ABOUTDLG must be defined."
318# else
319# define wxUSE_ABOUTDLG 0
320# endif
321#endif /* !defined(wxUSE_ABOUTDLG) */
322
1e6feb95
VZ
323#ifndef wxUSE_ACCEL
324# ifdef wxABORT_ON_CONFIG_ERROR
325# error "wxUSE_ACCEL must be defined."
326# else
327# define wxUSE_ACCEL 0
328# endif
329#endif /* !defined(wxUSE_ACCEL) */
330
8d37334f
VZ
331#ifndef wxUSE_BITMAPCOMBOBOX
332# ifdef wxABORT_ON_CONFIG_ERROR
333# error "wxUSE_BITMAPCOMBOBOX must be defined."
334# else
335# define wxUSE_BITMAPCOMBOBOX 0
336# endif
337#endif /* !defined(wxUSE_BITMAPCOMBOBOX) */
338
1e6feb95
VZ
339#ifndef wxUSE_BMPBUTTON
340# ifdef wxABORT_ON_CONFIG_ERROR
341# error "wxUSE_BMPBUTTON must be defined."
342# else
343# define wxUSE_BMPBUTTON 0
344# endif
345#endif /* !defined(wxUSE_BMPBUTTON) */
346
347#ifndef wxUSE_BUTTON
348# ifdef wxABORT_ON_CONFIG_ERROR
349# error "wxUSE_BUTTON must be defined."
350# else
351# define wxUSE_BUTTON 0
352# endif
353#endif /* !defined(wxUSE_BUTTON) */
354
355#ifndef wxUSE_CALENDARCTRL
356# ifdef wxABORT_ON_CONFIG_ERROR
357# error "wxUSE_CALENDARCTRL must be defined."
358# else
359# define wxUSE_CALENDARCTRL 0
360# endif
361#endif /* !defined(wxUSE_CALENDARCTRL) */
362
363#ifndef wxUSE_CARET
364# ifdef wxABORT_ON_CONFIG_ERROR
365# error "wxUSE_CARET must be defined."
366# else
367# define wxUSE_CARET 0
368# endif
369#endif /* !defined(wxUSE_CARET) */
370
371#ifndef wxUSE_CHECKBOX
372# ifdef wxABORT_ON_CONFIG_ERROR
373# error "wxUSE_CHECKBOX must be defined."
374# else
375# define wxUSE_CHECKBOX 0
376# endif
377#endif /* !defined(wxUSE_CHECKBOX) */
378
379#ifndef wxUSE_CHECKLISTBOX
380# ifdef wxABORT_ON_CONFIG_ERROR
381# error "wxUSE_CHECKLISTBOX must be defined."
382# else
383# define wxUSE_CHECKLISTBOX 0
384# endif
385#endif /* !defined(wxUSE_CHECKLISTBOX) */
386
387#ifndef wxUSE_CHOICE
388# ifdef wxABORT_ON_CONFIG_ERROR
389# error "wxUSE_CHOICE must be defined."
390# else
391# define wxUSE_CHOICE 0
392# endif
393#endif /* !defined(wxUSE_CHOICE) */
394
f5e0b4bc
WS
395#ifndef wxUSE_CHOICEBOOK
396# ifdef wxABORT_ON_CONFIG_ERROR
397# error "wxUSE_CHOICEBOOK must be defined."
398# else
399# define wxUSE_CHOICEBOOK 0
400# endif
401#endif /* !defined(wxUSE_CHOICEBOOK) */
402
3379ed37
VZ
403#ifndef wxUSE_CHOICEDLG
404# ifdef wxABORT_ON_CONFIG_ERROR
405# error "wxUSE_CHOICEDLG must be defined."
406# else
407# define wxUSE_CHOICEDLG 0
408# endif
409#endif /* !defined(wxUSE_CHOICEDLG) */
410
1e6feb95
VZ
411#ifndef wxUSE_CLIPBOARD
412# ifdef wxABORT_ON_CONFIG_ERROR
413# error "wxUSE_CLIPBOARD must be defined."
414# else
415# define wxUSE_CLIPBOARD 0
416# endif
417#endif /* !defined(wxUSE_CLIPBOARD) */
418
a2c0a9c5
VZ
419#ifndef wxUSE_COLOURDLG
420# ifdef wxABORT_ON_CONFIG_ERROR
421# error "wxUSE_COLOURDLG must be defined."
422# else
423# define wxUSE_COLOURDLG 0
424# endif
425#endif /* !defined(wxUSE_COLOURDLG) */
426
ec376c8f
VZ
427#ifndef wxUSE_COLOURPICKERCTRL
428# ifdef wxABORT_ON_CONFIG_ERROR
429# error "wxUSE_COLOURPICKERCTRL must be defined."
430# else
431# define wxUSE_COLOURPICKERCTRL 0
432# endif
433#endif /* !defined(wxUSE_COLOURPICKERCTRL) */
434
1e6feb95
VZ
435#ifndef wxUSE_COMBOBOX
436# ifdef wxABORT_ON_CONFIG_ERROR
437# error "wxUSE_COMBOBOX must be defined."
438# else
439# define wxUSE_COMBOBOX 0
440# endif
441#endif /* !defined(wxUSE_COMBOBOX) */
442
a57d600f 443#ifndef wxUSE_COMBOCTRL
481e2766 444# ifdef wxABORT_ON_CONFIG_ERROR
a57d600f 445# error "wxUSE_COMBOCTRL must be defined."
481e2766 446# else
a57d600f 447# define wxUSE_COMBOCTRL 0
481e2766 448# endif
a57d600f 449#endif /* !defined(wxUSE_COMBOCTRL) */
481e2766 450
1e6feb95
VZ
451#ifndef wxUSE_DATAOBJ
452# ifdef wxABORT_ON_CONFIG_ERROR
453# error "wxUSE_DATAOBJ must be defined."
454# else
455# define wxUSE_DATAOBJ 0
456# endif
457#endif /* !defined(wxUSE_DATAOBJ) */
458
e16514bf
VZ
459#ifndef wxUSE_DATAVIEWCTRL
460# ifdef wxABORT_ON_CONFIG_ERROR
461# error "wxUSE_DATAVIEWCTRL must be defined."
462# else
463# define wxUSE_DATAVIEWCTRL 0
464# endif
465#endif /* !defined(wxUSE_DATAVIEWCTRL) */
466
337dc4c1
WS
467#ifndef wxUSE_DATEPICKCTRL
468# ifdef wxABORT_ON_CONFIG_ERROR
469# error "wxUSE_DATEPICKCTRL must be defined."
470# else
471# define wxUSE_DATEPICKCTRL 0
472# endif
473#endif /* !defined(wxUSE_DATEPICKCTRL) */
474
ec376c8f
VZ
475#ifndef wxUSE_DIRPICKERCTRL
476# ifdef wxABORT_ON_CONFIG_ERROR
477# error "wxUSE_DIRPICKERCTRL must be defined."
478# else
479# define wxUSE_DIRPICKERCTRL 0
480# endif
481#endif /* !defined(wxUSE_DIRPICKERCTRL) */
482
f8ba082e
VZ
483#ifndef wxUSE_DISPLAY
484# ifdef wxABORT_ON_CONFIG_ERROR
485# error "wxUSE_DISPLAY must be defined."
486# else
487# define wxUSE_DISPLAY 0
488# endif
489#endif /* !defined(wxUSE_DISPLAY) */
490
3379ed37
VZ
491#ifndef wxUSE_DOC_VIEW_ARCHITECTURE
492# ifdef wxABORT_ON_CONFIG_ERROR
493# error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
494# else
495# define wxUSE_DOC_VIEW_ARCHITECTURE 0
496# endif
497#endif /* !defined(wxUSE_DOC_VIEW_ARCHITECTURE) */
498
1e6feb95
VZ
499#ifndef wxUSE_FILEDLG
500# ifdef wxABORT_ON_CONFIG_ERROR
501# error "wxUSE_FILEDLG must be defined."
502# else
503# define wxUSE_FILEDLG 0
504# endif
505#endif /* !defined(wxUSE_FILEDLG) */
506
ec376c8f
VZ
507#ifndef wxUSE_FILEPICKERCTRL
508# ifdef wxABORT_ON_CONFIG_ERROR
509# error "wxUSE_FILEPICKERCTRL must be defined."
510# else
511# define wxUSE_FILEPICKERCTRL 0
512# endif
513#endif /* !defined(wxUSE_FILEPICKERCTRL) */
514
1e6feb95
VZ
515#ifndef wxUSE_FONTDLG
516# ifdef wxABORT_ON_CONFIG_ERROR
517# error "wxUSE_FONTDLG must be defined."
518# else
519# define wxUSE_FONTDLG 0
520# endif
521#endif /* !defined(wxUSE_FONTDLG) */
522
523#ifndef wxUSE_FONTMAP
524# ifdef wxABORT_ON_CONFIG_ERROR
525# error "wxUSE_FONTMAP must be defined."
526# else
527# define wxUSE_FONTMAP 0
528# endif
529#endif /* !defined(wxUSE_FONTMAP) */
530
ec376c8f
VZ
531#ifndef wxUSE_FONTPICKERCTRL
532# ifdef wxABORT_ON_CONFIG_ERROR
533# error "wxUSE_FONTPICKERCTRL must be defined."
534# else
535# define wxUSE_FONTPICKERCTRL 0
536# endif
537#endif /* !defined(wxUSE_FONTPICKERCTRL) */
538
1e6feb95
VZ
539#ifndef wxUSE_GAUGE
540# ifdef wxABORT_ON_CONFIG_ERROR
541# error "wxUSE_GAUGE must be defined."
542# else
543# define wxUSE_GAUGE 0
544# endif
545#endif /* !defined(wxUSE_GAUGE) */
546
f43426c1
RD
547#ifndef wxUSE_GRAPHICS_CONTEXT
548# ifdef wxABORT_ON_CONFIG_ERROR
549# error "wxUSE_GRAPHICS_CONTEXT must be defined."
550# else
551# define wxUSE_GRAPHICS_CONTEXT 0
552# endif
553#endif /* !defined(wxUSE_GRAPHICS_CONTEXT) */
554
555
1e6feb95
VZ
556#ifndef wxUSE_GRID
557# ifdef wxABORT_ON_CONFIG_ERROR
558# error "wxUSE_GRID must be defined."
559# else
560# define wxUSE_GRID 0
561# endif
562#endif /* !defined(wxUSE_GRID) */
563
3379ed37
VZ
564#ifndef wxUSE_HELP
565# ifdef wxABORT_ON_CONFIG_ERROR
566# error "wxUSE_HELP must be defined."
567# else
568# define wxUSE_HELP 0
569# endif
570#endif /* !defined(wxUSE_HELP) */
571
17e91437
VZ
572#ifndef wxUSE_HYPERLINKCTRL
573# ifdef wxABORT_ON_CONFIG_ERROR
574# error "wxUSE_HYPERLINKCTRL must be defined."
575# else
576# define wxUSE_HYPERLINKCTRL 0
577# endif
578#endif /* !defined(wxUSE_HYPERLINKCTRL) */
579
05dcbb8e
VZ
580#ifndef wxUSE_HTML
581# ifdef wxABORT_ON_CONFIG_ERROR
582# error "wxUSE_HTML must be defined."
583# else
584# define wxUSE_HTML 0
585# endif
586#endif /* !defined(wxUSE_HTML) */
587
c839485c
VS
588#ifndef wxUSE_LIBMSPACK
589# ifndef __UNIX__
590 /* set to 0 on platforms that don't have libmspack */
591# define wxUSE_LIBMSPACK 0
592# else
593# ifdef wxABORT_ON_CONFIG_ERROR
594# error "wxUSE_LIBMSPACK must be defined."
595# else
596# define wxUSE_LIBMSPACK 0
597# endif
598# endif
599#endif /* !defined(wxUSE_LIBMSPACK) */
600
658974ae
VS
601#ifndef wxUSE_ICO_CUR
602# ifdef wxABORT_ON_CONFIG_ERROR
603# error "wxUSE_ICO_CUR must be defined."
604# else
605# define wxUSE_ICO_CUR 0
606# endif
607#endif /* !defined(wxUSE_ICO_CUR) */
608
1663afc0
VS
609#ifndef wxUSE_IFF
610# ifdef wxABORT_ON_CONFIG_ERROR
611# error "wxUSE_IFF must be defined."
612# else
613# define wxUSE_IFF 0
614# endif
615#endif /* !defined(wxUSE_IFF) */
616
1e6feb95
VZ
617#ifndef wxUSE_IMAGLIST
618# ifdef wxABORT_ON_CONFIG_ERROR
619# error "wxUSE_IMAGLIST must be defined."
620# else
621# define wxUSE_IMAGLIST 0
622# endif
623#endif /* !defined(wxUSE_IMAGLIST) */
624
2131b89d
VZ
625#ifndef wxUSE_JOYSTICK
626# ifdef wxABORT_ON_CONFIG_ERROR
627# error "wxUSE_JOYSTICK must be defined."
628# else
629# define wxUSE_JOYSTICK 0
630# endif
631#endif /* !defined(wxUSE_JOYSTICK) */
632
5b5e4f32
VZ
633#ifndef wxUSE_LISTBOOK
634# ifdef wxABORT_ON_CONFIG_ERROR
635# error "wxUSE_LISTBOOK must be defined."
636# else
637# define wxUSE_LISTBOOK 0
638# endif
639#endif /* !defined(wxUSE_LISTBOOK) */
640
1e6feb95
VZ
641#ifndef wxUSE_LISTBOX
642# ifdef wxABORT_ON_CONFIG_ERROR
643# error "wxUSE_LISTBOX must be defined."
644# else
645# define wxUSE_LISTBOX 0
646# endif
647#endif /* !defined(wxUSE_LISTBOX) */
648
649#ifndef wxUSE_LISTCTRL
650# ifdef wxABORT_ON_CONFIG_ERROR
651# error "wxUSE_LISTCTRL must be defined."
652# else
653# define wxUSE_LISTCTRL 0
654# endif
655#endif /* !defined(wxUSE_LISTCTRL) */
656
3379ed37
VZ
657#ifndef wxUSE_LOGGUI
658# ifdef wxABORT_ON_CONFIG_ERROR
659# error "wxUSE_LOGGUI must be defined."
660# else
661# define wxUSE_LOGGUI 0
662# endif
663#endif /* !defined(wxUSE_LOGGUI) */
664
665#ifndef wxUSE_LOGWINDOW
666# ifdef wxABORT_ON_CONFIG_ERROR
667# error "wxUSE_LOGWINDOW must be defined."
668# else
669# define wxUSE_LOGWINDOW 0
670# endif
671#endif /* !defined(wxUSE_LOGWINDOW) */
e421922f 672
3e6e2754
JS
673#ifndef wxUSE_LOG_DIALOG
674# ifdef wxABORT_ON_CONFIG_ERROR
675# error "wxUSE_LOG_DIALOG must be defined."
676# else
677# define wxUSE_LOG_DIALOG 0
678# endif
71908213 679#endif /* !defined(wxUSE_LOG_DIALOG) */
3e6e2754 680
efd17a1d
VZ
681#ifndef wxUSE_MDI
682# ifdef wxABORT_ON_CONFIG_ERROR
683# error "wxUSE_MDI must be defined."
684# else
685# define wxUSE_MDI 0
686# endif
687#endif /* !defined(wxUSE_MDI) */
688
1e6feb95
VZ
689#ifndef wxUSE_MDI_ARCHITECTURE
690# ifdef wxABORT_ON_CONFIG_ERROR
691# error "wxUSE_MDI_ARCHITECTURE must be defined."
692# else
693# define wxUSE_MDI_ARCHITECTURE 0
694# endif
695#endif /* !defined(wxUSE_MDI_ARCHITECTURE) */
696
697#ifndef wxUSE_MENUS
698# ifdef wxABORT_ON_CONFIG_ERROR
699# error "wxUSE_MENUS must be defined."
700# else
701# define wxUSE_MENUS 0
702# endif
703#endif /* !defined(wxUSE_MENUS) */
704
3379ed37
VZ
705#ifndef wxUSE_MSGDLG
706# ifdef wxABORT_ON_CONFIG_ERROR
707# error "wxUSE_MSGDLG must be defined."
708# else
709# define wxUSE_MSGDLG 0
710# endif
711#endif /* !defined(wxUSE_MSGDLG) */
712
1e6feb95
VZ
713#ifndef wxUSE_NOTEBOOK
714# ifdef wxABORT_ON_CONFIG_ERROR
715# error "wxUSE_NOTEBOOK must be defined."
716# else
717# define wxUSE_NOTEBOOK 0
718# endif
719#endif /* !defined(wxUSE_NOTEBOOK) */
720
a57d600f 721#ifndef wxUSE_ODCOMBOBOX
481e2766 722# ifdef wxABORT_ON_CONFIG_ERROR
a57d600f 723# error "wxUSE_ODCOMBOBOX must be defined."
481e2766 724# else
a57d600f 725# define wxUSE_ODCOMBOBOX 0
481e2766 726# endif
a57d600f 727#endif /* !defined(wxUSE_ODCOMBOBOX) */
481e2766 728
d275c7eb
VZ
729#ifndef wxUSE_PALETTE
730# ifdef wxABORT_ON_CONFIG_ERROR
731# error "wxUSE_PALETTE must be defined."
732# else
733# define wxUSE_PALETTE 0
734# endif
735#endif /* !defined(wxUSE_PALETTE) */
736
1e6feb95
VZ
737#ifndef wxUSE_POPUPWIN
738# ifdef wxABORT_ON_CONFIG_ERROR
739# error "wxUSE_POPUPWIN must be defined."
740# else
741# define wxUSE_POPUPWIN 0
742# endif
743#endif /* !defined(wxUSE_POPUPWIN) */
744
3379ed37
VZ
745#ifndef wxUSE_PRINTING_ARCHITECTURE
746# ifdef wxABORT_ON_CONFIG_ERROR
747# error "wxUSE_PRINTING_ARCHITECTURE must be defined."
748# else
749# define wxUSE_PRINTING_ARCHITECTURE 0
750# endif
751#endif /* !defined(wxUSE_PRINTING_ARCHITECTURE) */
752
1e6feb95
VZ
753#ifndef wxUSE_RADIOBOX
754# ifdef wxABORT_ON_CONFIG_ERROR
755# error "wxUSE_RADIOBOX must be defined."
756# else
757# define wxUSE_RADIOBOX 0
758# endif
759#endif /* !defined(wxUSE_RADIOBOX) */
760
761#ifndef wxUSE_RADIOBTN
762# ifdef wxABORT_ON_CONFIG_ERROR
763# error "wxUSE_RADIOBTN must be defined."
764# else
765# define wxUSE_RADIOBTN 0
766# endif
767#endif /* !defined(wxUSE_RADIOBTN) */
768
769#ifndef wxUSE_SASH
770# ifdef wxABORT_ON_CONFIG_ERROR
771# error "wxUSE_SASH must be defined."
772# else
773# define wxUSE_SASH 0
774# endif
775#endif /* !defined(wxUSE_SASH) */
776
777#ifndef wxUSE_SCROLLBAR
778# ifdef wxABORT_ON_CONFIG_ERROR
779# error "wxUSE_SCROLLBAR must be defined."
780# else
781# define wxUSE_SCROLLBAR 0
782# endif
783#endif /* !defined(wxUSE_SCROLLBAR) */
784
785#ifndef wxUSE_SLIDER
786# ifdef wxABORT_ON_CONFIG_ERROR
787# error "wxUSE_SLIDER must be defined."
788# else
789# define wxUSE_SLIDER 0
790# endif
791#endif /* !defined(wxUSE_SLIDER) */
792
cad1a197
VS
793#ifndef wxUSE_SOUND
794# ifdef wxABORT_ON_CONFIG_ERROR
795# error "wxUSE_SOUND must be defined."
796# else
797# define wxUSE_SOUND 0
798# endif
799#endif /* !defined(wxUSE_SOUND) */
800
1e6feb95
VZ
801#ifndef wxUSE_SPINBTN
802# ifdef wxABORT_ON_CONFIG_ERROR
803# error "wxUSE_SPINBTN must be defined."
804# else
805# define wxUSE_SPINBTN 0
806# endif
807#endif /* !defined(wxUSE_SPINBTN) */
808
809#ifndef wxUSE_SPINCTRL
810# ifdef wxABORT_ON_CONFIG_ERROR
811# error "wxUSE_SPINCTRL must be defined."
812# else
813# define wxUSE_SPINCTRL 0
814# endif
815#endif /* !defined(wxUSE_SPINCTRL) */
816
2654a046
MB
817#ifndef wxUSE_SPLASH
818# ifdef wxABORT_ON_CONFIG_ERROR
819# error "wxUSE_SPLASH must be defined."
820# else
821# define wxUSE_SPLASH 0
822# endif
823#endif /* !defined(wxUSE_SPLASH) */
824
1e6feb95
VZ
825#ifndef wxUSE_SPLITTER
826# ifdef wxABORT_ON_CONFIG_ERROR
827# error "wxUSE_SPLITTER must be defined."
828# else
829# define wxUSE_SPLITTER 0
830# endif
831#endif /* !defined(wxUSE_SPLITTER) */
832
833#ifndef wxUSE_STATBMP
834# ifdef wxABORT_ON_CONFIG_ERROR
835# error "wxUSE_STATBMP must be defined."
836# else
837# define wxUSE_STATBMP 0
838# endif
839#endif /* !defined(wxUSE_STATBMP) */
840
841#ifndef wxUSE_STATBOX
842# ifdef wxABORT_ON_CONFIG_ERROR
843# error "wxUSE_STATBOX must be defined."
844# else
845# define wxUSE_STATBOX 0
846# endif
847#endif /* !defined(wxUSE_STATBOX) */
848
849#ifndef wxUSE_STATLINE
850# ifdef wxABORT_ON_CONFIG_ERROR
851# error "wxUSE_STATLINE must be defined."
852# else
853# define wxUSE_STATLINE 0
854# endif
855#endif /* !defined(wxUSE_STATLINE) */
856
3379ed37
VZ
857#ifndef wxUSE_STATTEXT
858# ifdef wxABORT_ON_CONFIG_ERROR
859# error "wxUSE_STATTEXT must be defined."
860# else
861# define wxUSE_STATTEXT 0
862# endif
863#endif /* !defined(wxUSE_STATTEXT) */
864
1e6feb95
VZ
865#ifndef wxUSE_STATUSBAR
866# ifdef wxABORT_ON_CONFIG_ERROR
867# error "wxUSE_STATUSBAR must be defined."
868# else
869# define wxUSE_STATUSBAR 0
870# endif
871#endif /* !defined(wxUSE_STATUSBAR) */
872
1e6feb95
VZ
873#ifndef wxUSE_TAB_DIALOG
874# ifdef wxABORT_ON_CONFIG_ERROR
875# error "wxUSE_TAB_DIALOG must be defined."
876# else
877# define wxUSE_TAB_DIALOG 0
878# endif
879#endif /* !defined(wxUSE_TAB_DIALOG) */
880
881#ifndef wxUSE_TEXTCTRL
882# ifdef wxABORT_ON_CONFIG_ERROR
883# error "wxUSE_TEXTCTRL must be defined."
884# else
885# define wxUSE_TEXTCTRL 0
886# endif
887#endif /* !defined(wxUSE_TEXTCTRL) */
888
f38bcae5
VZ
889#ifndef wxUSE_TIPWINDOW
890# ifdef wxABORT_ON_CONFIG_ERROR
891# error "wxUSE_TIPWINDOW must be defined."
892# else
893# define wxUSE_TIPWINDOW 0
894# endif
895#endif /* !defined(wxUSE_TIPWINDOW) */
896
1e6feb95
VZ
897#ifndef wxUSE_TOOLBAR
898# ifdef wxABORT_ON_CONFIG_ERROR
899# error "wxUSE_TOOLBAR must be defined."
900# else
901# define wxUSE_TOOLBAR 0
902# endif
903#endif /* !defined(wxUSE_TOOLBAR) */
904
905#ifndef wxUSE_TOOLTIPS
906# ifdef wxABORT_ON_CONFIG_ERROR
907# error "wxUSE_TOOLTIPS must be defined."
908# else
909# define wxUSE_TOOLTIPS 0
910# endif
911#endif /* !defined(wxUSE_TOOLTIPS) */
912
913#ifndef wxUSE_TREECTRL
914# ifdef wxABORT_ON_CONFIG_ERROR
915# error "wxUSE_TREECTRL must be defined."
916# else
917# define wxUSE_TREECTRL 0
918# endif
919#endif /* !defined(wxUSE_TREECTRL) */
920
f8ba082e 921#ifndef wxUSE_VALIDATORS
12491c1f 922# ifdef wxABORT_ON_CONFIG_ERROR
f8ba082e 923# error "wxUSE_VALIDATORS must be defined."
12491c1f 924# else
f8ba082e 925# define wxUSE_VALIDATORS 0
12491c1f 926# endif
f8ba082e 927#endif /* !defined(wxUSE_VALIDATORS) */
12491c1f 928
3379ed37
VZ
929#ifndef wxUSE_WXHTML_HELP
930# ifdef wxABORT_ON_CONFIG_ERROR
931# error "wxUSE_WXHTML_HELP must be defined."
932# else
933# define wxUSE_WXHTML_HELP 0
934# endif
935#endif /* !defined(wxUSE_WXHTML_HELP) */
936
e16514bf
VZ
937#ifndef wxUSE_XRC
938# ifdef wxABORT_ON_CONFIG_ERROR
939# error "wxUSE_XRC must be defined."
940# else
941# define wxUSE_XRC 0
942# endif
943#endif /* !defined(wxUSE_XRC) */
944
a5d46b73 945#endif /* wxUSE_GUI */
c4d596ea 946
1e6feb95
VZ
947/*
948 check consistency of the settings
949 */
a5d46b73 950
f7c3b945
WS
951#if WXWIN_COMPATIBILITY_2_4
952# if !WXWIN_COMPATIBILITY_2_6
953# ifdef wxABORT_ON_CONFIG_ERROR
954# error "2.4.X compatibility requires 2.6.X compatibility"
955# else
956# undef WXWIN_COMPATIBILITY_2_6
957# define WXWIN_COMPATIBILITY_2_6 1
958# endif
959# endif
960#endif /* WXWIN_COMPATIBILITY_2_4 */
961
5d36ad18
VZ
962#if wxUSE_ARCHIVE_STREAMS
963# if !wxUSE_DATETIME
964# ifdef wxABORT_ON_CONFIG_ERROR
965# error "wxArchive requires wxUSE_DATETIME"
966# else
967# undef wxUSE_ARCHIVE_STREAMS
968# define wxUSE_ARCHIVE_STREAMS 0
969# endif
970# endif
971#endif /* wxUSE_ARCHIVE_STREAMS */
972
0c46d866
VZ
973#if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION
974# ifdef wxABORT_ON_CONFIG_ERROR
975# error "wxUSE_CRASHREPORT requires wxUSE_ON_FATAL_EXCEPTION"
976# else
977# undef wxUSE_CRASHREPORT
978# define wxUSE_CRASHREPORT 0
979# endif
980#endif /* wxUSE_CRASHREPORT */
981
a5d46b73
VZ
982#if wxUSE_PROTOCOL_FILE || wxUSE_PROTOCOL_FTP || wxUSE_PROTOCOL_HTTP
983# if !wxUSE_PROTOCOL
984# ifdef wxABORT_ON_CONFIG_ERROR
985# error "wxUSE_PROTOCOL_XXX requires wxUSE_PROTOCOL"
986# else
987# undef wxUSE_PROTOCOL
988# define wxUSE_PROTOCOL 1
989# endif
990# endif
991#endif /* wxUSE_PROTOCOL_XXX */
992
993#if wxUSE_URL
994# if !wxUSE_PROTOCOL
995# ifdef wxABORT_ON_CONFIG_ERROR
996# error "wxUSE_URL requires wxUSE_PROTOCOL"
997# else
998# undef wxUSE_PROTOCOL
999# define wxUSE_PROTOCOL 1
1000# endif
1001# endif
1002#endif /* wxUSE_URL */
1003
1004#if wxUSE_PROTOCOL
1005# if !wxUSE_SOCKETS
1006# if wxUSE_PROTOCOL_HTTP || wxUSE_PROTOCOL_FTP
1007# ifdef wxABORT_ON_CONFIG_ERROR
1008# error "wxUSE_PROTOCOL_FTP/HTTP requires wxUSE_SOCKETS"
1009# else
1010# undef wxUSE_SOCKETS
1011# define wxUSE_SOCKETS 1
1012# endif
1013# endif
1014# endif
1015
1016# if !wxUSE_STREAMS
1017# ifdef wxABORT_ON_CONFIG_ERROR
1018# error "wxUSE_PROTOCOL requires wxUSE_STREAMS"
1019# else
1020# undef wxUSE_STREAMS
1021# define wxUSE_STREAMS 1
1022# endif
1023# endif
1024#endif /* wxUSE_PROTOCOL */
1025
c7f3eecc
VZ
1026/* have to test for wxUSE_HTML before wxUSE_FILESYSTEM */
1027#if wxUSE_HTML
1028# if !wxUSE_FILESYSTEM
1029# ifdef wxABORT_ON_CONFIG_ERROR
1030# error "wxHTML requires wxFileSystem"
1031# else
1032# undef wxUSE_FILESYSTEM
1033# define wxUSE_FILESYSTEM 1
1034# endif
1035# endif
1036#endif /* wxUSE_HTML */
1037
1038#if wxUSE_FILESYSTEM
1039# if !wxUSE_STREAMS
1040# ifdef wxABORT_ON_CONFIG_ERROR
1041# error "wxUSE_FILESYSTEM requires wxUSE_STREAMS"
1042# else
1043# undef wxUSE_STREAMS
1044# define wxUSE_STREAMS 1
1045# endif
1046# endif
d9b0ee1e
VZ
1047# if !wxUSE_FILE && !wxUSE_FFILE
1048# ifdef wxABORT_ON_CONFIG_ERROR
1049# error "wxUSE_FILESYSTEM requires either wxUSE_FILE or wxUSE_FFILE"
1050# else
1051# undef wxUSE_FILESYSTEM
1052# define wxUSE_FILESYSTEM 0
1053# endif
1054# endif
c7f3eecc
VZ
1055#endif /* wxUSE_FILESYSTEM */
1056
ce73e654
VS
1057#if wxUSE_FS_INET
1058# if !wxUSE_PROTOCOL
1059# ifdef wxABORT_ON_CONFIG_ERROR
1060# error "wxUSE_FS_INET requires wxUSE_PROTOCOL"
1061# else
1062# undef wxUSE_PROTOCOL
1063# define wxUSE_PROTOCOL 1
1064# endif
1065# endif
1066#endif /* wxUSE_FS_INET */
1067
c7f3eecc 1068#if wxUSE_STOPWATCH || wxUSE_DATETIME
a5d46b73
VZ
1069# if !wxUSE_LONGLONG
1070# ifdef wxABORT_ON_CONFIG_ERROR
c7f3eecc 1071# error "wxUSE_STOPWATCH and wxUSE_DATETIME require wxUSE_LONGLONG"
a5d46b73
VZ
1072# else
1073# undef wxUSE_LONGLONG
1074# define wxUSE_LONGLONG 1
1075# endif
1076# endif
1077#endif /* wxUSE_STOPWATCH */
1078
1079#if wxUSE_MIMETYPE && !wxUSE_TEXTFILE
1080# ifdef wxABORT_ON_CONFIG_ERROR
1081# error "wxUSE_MIMETYPE requires wxUSE_TEXTFILE"
1082# else
1083# undef wxUSE_TEXTFILE
1084# define wxUSE_TEXTFILE 1
1085# endif
1086#endif /* wxUSE_MIMETYPE */
1087
5ac31f6f
VZ
1088#if wxUSE_ODBC
1089# if !wxUSE_DATETIME
1090# ifdef wxABORT_ON_CONFIG_ERROR
1091# error "wxODBC requires wxUSE_DATETIME"
1092# else
1093# undef wxUSE_ODBC
1094# define wxUSE_ODBC 0
1095# endif
1096# endif
1097#endif /* wxUSE_ODBC */
1098
a5d46b73
VZ
1099#if wxUSE_TEXTFILE && !wxUSE_TEXTBUFFER
1100# ifdef wxABORT_ON_CONFIG_ERROR
1101# error "wxUSE_TEXTFILE requires wxUSE_TEXTBUFFER"
1102# else
1103# undef wxUSE_TEXTBUFFER
1104# define wxUSE_TEXTBUFFER 1
1105# endif
1106#endif /* wxUSE_TEXTFILE */
1107
1108#if wxUSE_TEXTFILE && !wxUSE_FILE
1109# ifdef wxABORT_ON_CONFIG_ERROR
1110# error "wxUSE_TEXTFILE requires wxUSE_FILE"
1111# else
1112# undef wxUSE_FILE
1113# define wxUSE_FILE 1
1114# endif
1115#endif /* wxUSE_TEXTFILE */
1116
7f799744
VS
1117#if wxUSE_XML && !wxUSE_WCHAR_T
1118# ifdef wxABORT_ON_CONFIG_ERROR
1119# error "wxUSE_XML requires wxUSE_WCHAR_T"
1120# else
1121# undef wxUSE_XML
1122# define wxUSE_XML 0
1123# endif
36a22fa3 1124#endif /* wxUSE_XML */
7f799744 1125
1948bb32
VS
1126#if !wxUSE_DYNLIB_CLASS
1127# if wxUSE_DYNAMIC_LOADER
1128# ifdef wxABORT_ON_CONFIG_ERROR
1129# error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
1130# else
1131# define wxUSE_DYNLIB_CLASS 1
1132# endif
1133# endif
1134#endif /* wxUSE_DYNLIB_CLASS */
1135
81f90336
MW
1136#if wxUSE_ZIPSTREAM
1137# if !wxUSE_ZLIB
1138# ifdef wxABORT_ON_CONFIG_ERROR
1139# error "wxZip requires wxZlib"
1140# else
1141# undef wxUSE_ZLIB
1142# define wxUSE_ZLIB 1
1143# endif
1144# endif
9e8e867f 1145# if !wxUSE_ARCHIVE_STREAMS
81f90336
MW
1146# ifdef wxABORT_ON_CONFIG_ERROR
1147# error "wxZip requires wxArchive"
1148# else
9e8e867f
MW
1149# undef wxUSE_ARCHIVE_STREAMS
1150# define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
1151# endif
1152# endif
1153#endif /* wxUSE_ZIPSTREAM */
1154
a5d46b73
VZ
1155/* the rest of the tests is for the GUI settings only */
1156#if wxUSE_GUI
1157
1e6feb95
VZ
1158#if wxUSE_BUTTON || \
1159 wxUSE_CALENDARCTRL || \
1160 wxUSE_CARET || \
1161 wxUSE_COMBOBOX || \
1162 wxUSE_BMPBUTTON || \
1163 wxUSE_CHECKBOX || \
1164 wxUSE_CHECKLISTBOX || \
1165 wxUSE_CHOICE || \
1166 wxUSE_GAUGE || \
1167 wxUSE_GRID || \
1e6feb95
VZ
1168 wxUSE_LISTBOX || \
1169 wxUSE_LISTCTRL || \
1170 wxUSE_NOTEBOOK || \
1171 wxUSE_RADIOBOX || \
1172 wxUSE_RADIOBTN || \
1173 wxUSE_SCROLLBAR || \
1174 wxUSE_SLIDER || \
1175 wxUSE_SPINBTN || \
1176 wxUSE_SPINCTRL || \
1177 wxUSE_STATBMP || \
1178 wxUSE_STATBOX || \
1179 wxUSE_STATLINE || \
3379ed37 1180 wxUSE_STATTEXT || \
1e6feb95
VZ
1181 wxUSE_STATUSBAR || \
1182 wxUSE_TEXTCTRL || \
1183 wxUSE_TOOLBAR || \
1184 wxUSE_TREECTRL
1185# if !wxUSE_CONTROLS
1186# ifdef wxABORT_ON_CONFIG_ERROR
1187# error "wxUSE_CONTROLS unset but some controls used"
1188# else
1189# undef wxUSE_CONTROLS
1190# define wxUSE_CONTROLS 1
1191# endif
1192# endif
1193#endif /* controls */
1194
0b4f47a3
DS
1195#if wxUSE_BMPBUTTON
1196# if !wxUSE_BUTTON
1197# ifdef wxABORT_ON_CONFIG_ERROR
1198# error "wxUSE_BMPBUTTON requires wxUSE_BUTTON"
1199# else
1200# undef wxUSE_BUTTON
1201# define wxUSE_BUTTON 1
1202# endif
1203# endif
1204#endif /* wxUSE_BMPBUTTON */
1205
aa017eab
VZ
1206/*
1207 wxUSE_BOOKCTRL should be only used if any of the controls deriving from it
1208 are used
1209 */
1210#ifdef wxUSE_BOOKCTRL
1211# ifdef wxABORT_ON_CONFIG_ERROR
1212# error "wxUSE_BOOKCTRL is defined automatically, don't define it"
1213# else
1214# undef wxUSE_BOOKCTRL
15aad3b9 1215# endif
aa017eab 1216#endif
15aad3b9 1217
aa017eab
VZ
1218#define wxUSE_BOOKCTRL (wxUSE_NOTEBOOK || \
1219 wxUSE_LISTBOOK || \
1220 wxUSE_CHOICEBOOK || \
1221 wxUSE_TREEBOOK)
15aad3b9 1222
5b5e4f32
VZ
1223#if wxUSE_LISTBOOK
1224# if !wxUSE_LISTCTRL
1225# ifdef wxABORT_ON_CONFIG_ERROR
1226# error "wxListbook requires wxListCtrl"
1227# else
1228# undef wxUSE_LISTCTRL
1229# define wxUSE_LISTCTRL 1
1230# endif
1231# endif
1232#endif /* wxUSE_LISTBOOK */
1233
f5e0b4bc
WS
1234#if wxUSE_CHOICEBOOK
1235# if !wxUSE_CHOICE
1236# ifdef wxABORT_ON_CONFIG_ERROR
1237# error "wxChoicebook requires wxChoice"
1238# else
1239# undef wxUSE_CHOICE
1240# define wxUSE_CHOICE 1
1241# endif
1242# endif
1243#endif /* wxUSE_CHOICEBOOK */
1244
8d37334f
VZ
1245#if !wxUSE_ODCOMBOBOX
1246# if wxUSE_BITMAPCOMBOBOX
1247# error "wxBitmapComboBox requires wxOwnerDrawnComboBox"
1248# else
1249# undef wxUSE_BITMAPCOMBOBOX
1250# define wxUSE_BITMAPCOMBOBOX 0
1251# endif
1252#endif /* !wxUSE_ODCOMBOBOX */
1253
da4486fb
VZ
1254/* don't attempt to use native status bar on the platforms not having it */
1255#ifndef wxUSE_NATIVE_STATUSBAR
1256# define wxUSE_NATIVE_STATUSBAR 0
1257#elif wxUSE_NATIVE_STATUSBAR
b08cd3bf
WS
1258# if defined(__WXUNIVERSAL__) || !( defined(__WXMSW__) || \
1259 defined(__WXMAC__) || \
1260 defined(__WXPALMOS__) )
da4486fb
VZ
1261# undef wxUSE_NATIVE_STATUSBAR
1262# define wxUSE_NATIVE_STATUSBAR 0
1263# endif
1264#endif
1265
f43426c1
RD
1266#if wxUSE_GRAPHICS_CONTEXT && !wxUSE_GEOMETRY
1267# ifdef wxABORT_ON_CONFIG_ERROR
1268# error "wxUSE_GRAPHICS_CONTEXT requires wxUSE_GEOMETRY"
1269# else
1270# undef wxUSE_GRAPHICS_CONTEXT
1271# define wxUSE_GRAPHICS_CONTEXT 0
1272# endif
1273#endif /* wxUSE_GRAPHICS_CONTEXT */
1274
1275
3379ed37 1276/* wxGTK-specific dependencies */
2131b89d
VZ
1277#ifdef __WXGTK__
1278# ifndef __WXUNIVERSAL__
1279# if wxUSE_MDI_ARCHITECTURE && !wxUSE_MENUS
1280# ifdef wxABORT_ON_CONFIG_ERROR
1281# error "MDI requires wxUSE_MENUS in wxGTK"
1282# else
1283# undef wxUSE_MENUS
1284# define wxUSE_MENUS 1
1285# endif
1286# endif
1287# endif /* !__WXUNIVERSAL__ */
1288
1289# if wxUSE_JOYSTICK
1290# if !wxUSE_THREADS
1291# ifdef wxABORT_ON_CONFIG_ERROR
1292# error "wxJoystick requires threads in wxGTK"
1293# else
1294# undef wxUSE_JOYSTICK
1295# define wxUSE_JOYSTICK 0
1296# endif
3379ed37
VZ
1297# endif
1298# endif
1299#endif /* wxGTK && !wxUniv */
1300
67e489c5 1301/* Hopefully we can emulate these dialogs in due course */
9b141468 1302#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
b92203a8
VZ
1303# ifdef wxUSE_COLOURDLG
1304# undef wxUSE_COLOURDLG
1305# define wxUSE_COLOURDLG 0
1306# endif
9b141468 1307#endif /* __SMARTPHONE__ && __WXWINCE__ */
b92203a8
VZ
1308
1309
3379ed37
VZ
1310/* generic controls dependencies */
1311#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
1312# if wxUSE_FONTDLG || wxUSE_FILEDLG || wxUSE_CHOICEDLG
1313 /* all common controls are needed by these dialogs */
1314# if !defined(wxUSE_CHOICE) || \
1315 !defined(wxUSE_TEXTCTRL) || \
1316 !defined(wxUSE_BUTTON) || \
1317 !defined(wxUSE_CHECKBOX) || \
1318 !defined(wxUSE_STATTEXT)
1319# ifdef wxABORT_ON_CONFIG_ERROR
1320# error "These common controls are needed by common dialogs"
1321# else
1322# undef wxUSE_CHOICE
1323# define wxUSE_CHOICE 1
1324# undef wxUSE_TEXTCTRL
1325# define wxUSE_TEXTCTRL 1
1326# undef wxUSE_BUTTON
1327# define wxUSE_BUTTON 1
1328# undef wxUSE_CHECKBOX
1329# define wxUSE_CHECKBOX 1
1330# undef wxUSE_STATTEXT
1331# define wxUSE_STATTEXT 1
1332# endif
1333# endif
1334# endif
1335#endif /* !wxMSW || wxUniv */
1336
1337/* common dependencies */
1e6feb95
VZ
1338#if wxUSE_CALENDARCTRL
1339# if !(wxUSE_SPINBTN && wxUSE_COMBOBOX)
1340# ifdef wxABORT_ON_CONFIG_ERROR
1341# error "wxCalendarCtrl requires wxSpinButton and wxComboBox"
1342# else
1343# undef wxUSE_SPINBTN
1344# undef wxUSE_COMBOBOX
1345# define wxUSE_SPINBTN 1
1346# define wxUSE_COMBOBOX 1
1347# endif
1348# endif
e2b87f38
VZ
1349
1350# if !wxUSE_DATETIME
1351# ifdef wxABORT_ON_CONFIG_ERROR
1352# error "wxCalendarCtrl requires wxUSE_DATETIME"
1353# else
1354# undef wxUSE_DATETIME
1355# define wxUSE_DATETIME 1
1356# endif
1357# endif
1e6feb95
VZ
1358#endif /* wxUSE_CALENDARCTRL */
1359
324eeecb
WS
1360#if wxUSE_DATEPICKCTRL
1361# if !wxUSE_DATETIME
1362# ifdef wxABORT_ON_CONFIG_ERROR
60bea0cf 1363# error "wxDatePickerCtrl requires wxUSE_DATETIME"
324eeecb
WS
1364# else
1365# undef wxUSE_DATETIME
1366# define wxUSE_DATETIME 1
1367# endif
1368# endif
1369#endif /* wxUSE_DATEPICKCTRL */
1370
1e6feb95
VZ
1371#if wxUSE_CHECKLISTBOX
1372# if !wxUSE_LISTBOX
1373# ifdef wxABORT_ON_CONFIG_ERROR
1374# error "wxCheckListBox requires wxListBox"
1375# else
1376# undef wxUSE_LISTBOX
1377# define wxUSE_LISTBOX 1
1378# endif
1379# endif
97e4cf6d
WS
1380#endif /* wxUSE_CHECKLISTBOX */
1381
1382#if wxUSE_CHOICEDLG
1383# if !wxUSE_LISTBOX
1384# ifdef wxABORT_ON_CONFIG_ERROR
1385# error "Choice dialogs requires wxListBox"
1386# else
1387# undef wxUSE_LISTBOX
1388# define wxUSE_LISTBOX 1
1389# endif
1390# endif
1391#endif /* wxUSE_CHOICEDLG */
1e6feb95 1392
0b4f47a3
DS
1393#if wxUSE_HELP
1394# if !wxUSE_BMPBUTTON
1395# ifdef wxABORT_ON_CONFIG_ERROR
1396# error "wxUSE_HELP requires wxUSE_BMPBUTTON"
1397# else
1398# undef wxUSE_BMPBUTTON
1399# define wxUSE_BMPBUTTON 1
1400# endif
1401# endif
adb799d6
DS
1402
1403# if !wxUSE_CHOICEDLG
1404# ifdef wxABORT_ON_CONFIG_ERROR
1405# error "wxUSE_HELP requires wxUSE_CHOICEDLG"
1406# else
1407# undef wxUSE_CHOICEDLG
1408# define wxUSE_CHOICEDLG 1
1409# endif
1410# endif
0b4f47a3
DS
1411#endif /* wxUSE_HELP */
1412
3379ed37 1413#if wxUSE_WXHTML_HELP
0e871ad0 1414# if !wxUSE_HELP || !wxUSE_HTML || !wxUSE_COMBOBOX || !wxUSE_NOTEBOOK || !wxUSE_SPINCTRL
3379ed37
VZ
1415# ifdef wxABORT_ON_CONFIG_ERROR
1416# error "Built in help controller can't be compiled"
1417# else
1418# undef wxUSE_HELP
1419# define wxUSE_HELP 1
1420# undef wxUSE_HTML
1421# define wxUSE_HTML 1
1422# undef wxUSE_COMBOBOX
1423# define wxUSE_COMBOBOX 1
730dfeb4
VS
1424# undef wxUSE_NOTEBOOK
1425# define wxUSE_NOTEBOOK 1
0e871ad0
WS
1426# undef wxUSE_SPINCTRL
1427# define wxUSE_SPINCTRL 1
3379ed37
VZ
1428# endif
1429# endif
1430#endif /* wxUSE_WXHTML_HELP */
1431
05e4fd64
DS
1432#if !wxUSE_IMAGE
1433/*
1434 The default wxUSE_IMAGE setting is 1, so if it's set to 0 we assume the
1435 user explicitly wants this and disable all other features that require
1436 wxUSE_IMAGE.
1437 */
1438# if wxUSE_DRAGIMAGE
1439# ifdef wxABORT_ON_CONFIG_ERROR
1440# error "wxUSE_DRAGIMAGE requires wxUSE_IMAGE"
1441# else
1442# undef wxUSE_DRAGIMAGE
1443# define wxUSE_DRAGIMAGE 0
1444# endif
1445# endif
1446
1447# if wxUSE_LIBPNG
1448# ifdef wxABORT_ON_CONFIG_ERROR
1449# error "wxUSE_LIBPNG requires wxUSE_IMAGE"
1450# else
1451# undef wxUSE_LIBPNG
1452# define wxUSE_LIBPNG 0
1453# endif
1454# endif
1455
1456# if wxUSE_LIBJPEG
1457# ifdef wxABORT_ON_CONFIG_ERROR
1458# error "wxUSE_LIBJPEG requires wxUSE_IMAGE"
1459# else
1460# undef wxUSE_LIBJPEG
1461# define wxUSE_LIBJPEG 0
1462# endif
1463# endif
1464
1465# if wxUSE_LIBTIFF
1466# ifdef wxABORT_ON_CONFIG_ERROR
1467# error "wxUSE_LIBTIFF requires wxUSE_IMAGE"
1468# else
1469# undef wxUSE_LIBTIFF
1470# define wxUSE_LIBTIFF 0
1471# endif
1472# endif
1473
1474# if wxUSE_GIF
1475# ifdef wxABORT_ON_CONFIG_ERROR
1476# error "wxUSE_GIF requires wxUSE_IMAGE"
1477# else
1478# undef wxUSE_GIF
1479# define wxUSE_GIF 0
1480# endif
1481# endif
1482
1483# if wxUSE_PNM
1484# ifdef wxABORT_ON_CONFIG_ERROR
1485# error "wxUSE_PNM requires wxUSE_IMAGE"
1486# else
1487# undef wxUSE_PNM
1488# define wxUSE_PNM 0
1489# endif
1490# endif
1491
1492# if wxUSE_PCX
1493# ifdef wxABORT_ON_CONFIG_ERROR
1494# error "wxUSE_PCX requires wxUSE_IMAGE"
1495# else
1496# undef wxUSE_PCX
1497# define wxUSE_PCX 0
1498# endif
1499# endif
1500
1501# if wxUSE_IFF
1502# ifdef wxABORT_ON_CONFIG_ERROR
1503# error "wxUSE_IFF requires wxUSE_IMAGE"
1504# else
1505# undef wxUSE_IFF
1506# define wxUSE_IFF 0
1507# endif
1508# endif
1509
1510# if wxUSE_TOOLBAR
1511# ifdef wxABORT_ON_CONFIG_ERROR
1512# error "wxUSE_TOOLBAR requires wxUSE_IMAGE"
1513# else
1514# undef wxUSE_TOOLBAR
1515# define wxUSE_TOOLBAR 0
1516# endif
1517# endif
1518
1519# if wxUSE_XPM
1520# ifdef wxABORT_ON_CONFIG_ERROR
1521# error "wxUSE_XPM requires wxUSE_IMAGE"
1522# else
1523# undef wxUSE_XPM
1524# define wxUSE_XPM 0
1525# endif
1526# endif
1527
1528#endif /* !wxUSE_IMAGE */
1529
e30285ab
VZ
1530#if wxUSE_DOC_VIEW_ARCHITECTURE
1531# if !wxUSE_MENUS
1532# ifdef wxABORT_ON_CONFIG_ERROR
1533# error "DocView requires wxUSE_MENUS"
1534# else
1535# undef wxUSE_MENUS
1536# define wxUSE_MENUS 1
1537# endif
1538# endif
1539
adb799d6
DS
1540# if !wxUSE_CHOICEDLG
1541# ifdef wxABORT_ON_CONFIG_ERROR
1542# error "DocView requires wxUSE_CHOICEDLG"
1543# else
1544# undef wxUSE_CHOICEDLG
1545# define wxUSE_CHOICEDLG 1
1546# endif
1547# endif
1548
e30285ab
VZ
1549# if !wxUSE_STREAMS && !wxUSE_STD_IOSTREAM
1550# ifdef wxABORT_ON_CONFIG_ERROR
1551# error "DocView requires wxUSE_STREAMS or wxUSE_STD_IOSTREAM"
1552# else
1553# undef wxUSE_STREAMS
1554# define wxUSE_STREAMS 1
1555# endif
1556# endif
1557#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
1558
3379ed37
VZ
1559#if wxUSE_PRINTING_ARCHITECTURE
1560# if !wxUSE_COMBOBOX
1561# ifdef wxABORT_ON_CONFIG_ERROR
1562# error "Print dialog requires wxUSE_COMBOBOX"
1563# else
1564# undef wxUSE_COMBOBOX
1565# define wxUSE_COMBOBOX 1
1566# endif
1567# endif
1568#endif /* wxUSE_PRINTING_ARCHITECTURE */
1569
e30285ab 1570#if wxUSE_MDI_ARCHITECTURE
efd17a1d
VZ
1571# if !wxUSE_MDI
1572# ifdef wxABORT_ON_CONFIG_ERROR
1573# error "MDI requires wxUSE_MDI"
1574# else
1575# undef wxUSE_MDI
1576# define wxUSE_MDI 1
1577# endif
1578# endif
1579
e30285ab 1580# if !wxUSE_DOC_VIEW_ARCHITECTURE
1e6feb95 1581# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1582# error "wxUSE_MDI_ARCHITECTURE requires wxUSE_DOC_VIEW_ARCHITECTURE"
1e6feb95 1583# else
e30285ab
VZ
1584# undef wxUSE_DOC_VIEW_ARCHITECTURE
1585# define wxUSE_DOC_VIEW_ARCHITECTURE 1
1e6feb95
VZ
1586# endif
1587# endif
e30285ab 1588#endif /* wxUSE_MDI_ARCHITECTURE */
1e6feb95
VZ
1589
1590#if !wxUSE_FILEDLG
2119e280 1591# if wxUSE_DOC_VIEW_ARCHITECTURE || wxUSE_WXHTML_HELP
1e6feb95 1592# ifdef wxABORT_ON_CONFIG_ERROR
0872eaf9 1593# error "wxUSE_FILEDLG is required by wxUSE_DOC_VIEW_ARCHITECTURE and wxUSE_WXHTML_HELP!"
1e6feb95
VZ
1594# else
1595# undef wxUSE_FILEDLG
1596# define wxUSE_FILEDLG 1
1597# endif
1598# endif
e421922f 1599#endif /* wxUSE_FILEDLG */
1e6feb95 1600
555f645a
WS
1601#if !wxUSE_GAUGE || !wxUSE_BUTTON
1602# if wxUSE_PROGRESSDLG && !defined(__WXPALMOS__)
063b752e 1603# ifdef wxABORT_ON_CONFIG_ERROR
555f645a 1604# error "Generic progress dialog requires wxUSE_GAUGE and wxUSE_BUTTON"
063b752e
WS
1605# else
1606# undef wxUSE_GAUGE
555f645a 1607# undef wxUSE_BUTTON
063b752e 1608# define wxUSE_GAUGE 1
555f645a 1609# define wxUSE_BUTTON 1
063b752e
WS
1610# endif
1611# endif
1612#endif /* !wxUSE_GAUGE */
1613
0b4f47a3 1614#if !wxUSE_BUTTON
555f645a 1615# if wxUSE_FONTDLG || \
0b4f47a3
DS
1616 wxUSE_FILEDLG || \
1617 wxUSE_CHOICEDLG || \
1618 wxUSE_NUMBERDLG || \
1619 wxUSE_TEXTDLG || \
1620 wxUSE_DIRDLG || \
1621 wxUSE_STARTUP_TIPS || \
1622 wxUSE_WIZARDDLG
1623# ifdef wxABORT_ON_CONFIG_ERROR
1624# error "Common and generic dialogs require wxUSE_BUTTON"
1625# else
1626# undef wxUSE_BUTTON
1627# define wxUSE_BUTTON 1
1628# endif
1629# endif
063b752e 1630#endif /* !wxUSE_BUTTON */
0b4f47a3 1631
12491c1f
JS
1632#if !wxUSE_TOOLBAR
1633# if wxUSE_TOOLBAR_NATIVE
1634# ifdef wxABORT_ON_CONFIG_ERROR
1635# error "wxUSE_TOOLBAR is set to 0 but wxUSE_TOOLBAR_NATIVE is set to 1"
1636# else
1637# undef wxUSE_TOOLBAR_NATIVE
1638# define wxUSE_TOOLBAR_NATIVE 0
1639# endif
1640# endif
12491c1f
JS
1641#endif
1642
1e6feb95
VZ
1643#if !wxUSE_IMAGLIST
1644# if wxUSE_TREECTRL || wxUSE_NOTEBOOK || wxUSE_LISTCTRL
1645# ifdef wxABORT_ON_CONFIG_ERROR
1646# error "wxImageList must be compiled as well"
1647# else
1648# undef wxUSE_IMAGLIST
1649# define wxUSE_IMAGLIST 1
1650# endif
1651# endif
1652#endif /* !wxUSE_IMAGLIST */
1653
e421922f
VZ
1654#if !wxUSE_MSGDLG
1655# ifdef wxABORT_ON_CONFIG_ERROR
1656 /* FIXME: should compile without it, of course, but doesn't */
1657# error "wxMessageBox is always needed"
1658# else
1659# undef wxUSE_MSGDLG
1660# define wxUSE_MSGDLG 1
1661# endif
1662#endif
1663
1e6feb95 1664#if wxUSE_RADIOBOX
9a727a3b 1665# if !wxUSE_RADIOBTN
1e6feb95 1666# ifdef wxABORT_ON_CONFIG_ERROR
9a727a3b 1667# error "wxUSE_RADIOBOX requires wxUSE_RADIOBTN"
1e6feb95
VZ
1668# else
1669# undef wxUSE_RADIOBTN
1e6feb95 1670# define wxUSE_RADIOBTN 1
9a727a3b
WS
1671# endif
1672# endif
1673# if !wxUSE_STATBOX && !defined(__WXPALMOS__)
1674# ifdef wxABORT_ON_CONFIG_ERROR
1675# error "wxUSE_RADIOBOX requires wxUSE_STATBOX"
1676# else
1677# undef wxUSE_STATBOX
1e6feb95
VZ
1678# define wxUSE_STATBOX 1
1679# endif
1680# endif
1681#endif /* wxUSE_RADIOBOX */
1682
3379ed37
VZ
1683#if wxUSE_LOGWINDOW
1684# if !wxUSE_TEXTCTRL
1685# ifdef wxABORT_ON_CONFIG_ERROR
1686# error "wxUSE_LOGWINDOW requires wxUSE_TEXTCTRL"
1687# else
1688# undef wxUSE_TEXTCTRL
1689# define wxUSE_TEXTCTRL 1
1690# endif
1691# endif
1692#endif /* wxUSE_LOGWINDOW */
1e6feb95 1693
3e6e2754 1694#if wxUSE_LOG_DIALOG
0b4f47a3 1695# if !wxUSE_LISTCTRL || !wxUSE_BUTTON
3e6e2754 1696# ifdef wxABORT_ON_CONFIG_ERROR
0b4f47a3 1697# error "wxUSE_LOG_DIALOG requires wxUSE_LISTCTRL and wxUSE_BUTTON"
3e6e2754
JS
1698# else
1699# undef wxUSE_LISTCTRL
1700# define wxUSE_LISTCTRL 1
0b4f47a3
DS
1701# undef wxUSE_BUTTON
1702# define wxUSE_BUTTON 1
3e6e2754
JS
1703# endif
1704# endif
1705#endif /* wxUSE_LOG_DIALOG */
1706
1e6feb95 1707#if wxUSE_CLIPBOARD && !wxUSE_DATAOBJ
3379ed37 1708# ifdef wxABORT_ON_CONFIG_ERROR
1e6feb95
VZ
1709# error "wxClipboard requires wxDataObject"
1710# else
1711# undef wxUSE_DATAOBJ
1712# define wxUSE_DATAOBJ 1
1713# endif
1714#endif /* wxUSE_CLIPBOARD */
1715
2b5f62a0
VZ
1716#if wxUSE_WX_RESOURCES && !wxUSE_PROLOGIO
1717# ifdef wxABORT_ON_CONFIG_ERROR
1718# error "wxr resources require PrologIO"
1719# else
1720# undef wxUSE_PROLOGIO
1721# define wxUSE_PROLOGIO 1
1722# endif
1723#endif /* wxUSE_WX_RESOURCES */
1724
d2ebf0b7
VS
1725#if wxUSE_XRC && !wxUSE_XML
1726# ifdef wxABORT_ON_CONFIG_ERROR
1727# error "wxUSE_XRC requires wxUSE_XML"
1728# else
1729# undef wxUSE_XRC
1730# define wxUSE_XRC 0
1731# endif
5a017695 1732#endif /* wxUSE_XRC */
d2ebf0b7 1733
4669dcb2
RN
1734#if wxUSE_SOCKETS && !wxUSE_STOPWATCH
1735# ifdef wxABORT_ON_CONFIG_ERROR
1736# error "wxUSE_SOCKETS requires wxUSE_STOPWATCH"
1737# else
1738# undef wxUSE_SOCKETS
1739# define wxUSE_SOCKETS 0
1740# endif
1741#endif /* wxUSE_SOCKETS */
1742
ca5c6ac3
VZ
1743#if !wxUSE_VARIANT
1744# if wxUSE_DATAVIEWCTRL
1745# ifdef wxABORT_ON_CONFIG_ERROR
1746# error "wxDataViewCtrl requires wxVariant"
1747# else
1748# undef wxUSE_DATAVIEWCTRL
1749# define wxUSE_DATAVIEWCTRL 0
1750# endif
1751# endif
1752
1753# if wxUSE_ODBC
1754# ifdef wxABORT_ON_CONFIG_ERROR
1755# error "wxUSE_ODBC requires wxVariant"
1756# else
1757# undef wxUSE_ODBC
1758# define wxUSE_ODBC 0
1759# endif
1760# endif
1761#endif /* wxUSE_VARIANT */
1762
1e6feb95 1763#endif /* wxUSE_GUI */