]>
Commit | Line | Data |
---|---|---|
2ecf902b WS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: config.h | |
3 | // Purpose: wxConfig base header | |
99d80019 | 4 | // Author: Julian Smart |
2ecf902b WS |
5 | // Modified by: |
6 | // Created: | |
99d80019 | 7 | // Copyright: (c) Julian Smart |
2ecf902b WS |
8 | // RCS-ID: $Id$ |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
26ac5fad JS |
12 | #ifndef _WX_CONFIG_H_BASE_ |
13 | #define _WX_CONFIG_H_BASE_ | |
14 | ||
2ecf902b | 15 | #include "wx/defs.h" |
fad4327b VZ |
16 | |
17 | #if wxUSE_CONFIG | |
18 | ||
26ac5fad JS |
19 | #include "wx/confbase.h" |
20 | ||
f0d3a2cc VZ |
21 | // ---------------------------------------------------------------------------- |
22 | // define the native wxConfigBase implementation | |
23 | // ---------------------------------------------------------------------------- | |
24 | ||
25 | // under Windows we prefer to use the native implementation but can be forced | |
26 | // to use the file-based one | |
16193c2b | 27 | #if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE |
f0d3a2cc VZ |
28 | #include "wx/msw/regconf.h" |
29 | #define wxConfig wxRegConfig | |
30 | #elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE | |
31 | #include "wx/os2/iniconf.h" | |
32 | #define wxConfig wxIniConfig | |
23a59c2c | 33 | #elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE |
f0d3a2cc VZ |
34 | #include "wx/palmos/prefconf.h" |
35 | #define wxConfig wxPrefConfig | |
36 | #else // either we're under Unix or wish to always use config files | |
37 | #include "wx/fileconf.h" | |
38 | #define wxConfig wxFileConfig | |
c801d85f KB |
39 | #endif |
40 | ||
fad4327b VZ |
41 | #endif // wxUSE_CONFIG |
42 | ||
f0d3a2cc | 43 | #endif // _WX_CONFIG_H_BASE_ |