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