]>
Commit | Line | Data |
---|---|---|
2ecf902b | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/config.h |
2ecf902b | 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 | ||
7ac1b576 | 15 | #include "wx/confbase.h" |
fad4327b VZ |
16 | |
17 | #if wxUSE_CONFIG | |
18 | ||
f0d3a2cc VZ |
19 | // ---------------------------------------------------------------------------- |
20 | // define the native wxConfigBase implementation | |
21 | // ---------------------------------------------------------------------------- | |
22 | ||
23 | // under Windows we prefer to use the native implementation but can be forced | |
24 | // to use the file-based one | |
bb5a9514 | 25 | #if defined(__WINDOWS__) && wxUSE_CONFIG_NATIVE |
f0d3a2cc VZ |
26 | #include "wx/msw/regconf.h" |
27 | #define wxConfig wxRegConfig | |
28 | #elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE | |
29 | #include "wx/os2/iniconf.h" | |
30 | #define wxConfig wxIniConfig | |
f0d3a2cc VZ |
31 | #else // either we're under Unix or wish to always use config files |
32 | #include "wx/fileconf.h" | |
33 | #define wxConfig wxFileConfig | |
c801d85f KB |
34 | #endif |
35 | ||
fad4327b VZ |
36 | #endif // wxUSE_CONFIG |
37 | ||
f0d3a2cc | 38 | #endif // _WX_CONFIG_H_BASE_ |