]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/config.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxConfig base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CONFIG_H_BASE_
13 #define _WX_CONFIG_H_BASE_
15 #include "wx/confbase.h"
19 // ----------------------------------------------------------------------------
20 // define the native wxConfigBase implementation
21 // ----------------------------------------------------------------------------
23 // under Windows we prefer to use the native implementation but can be forced
24 // to use the file-based one
25 #if defined(__WINDOWS__) && wxUSE_CONFIG_NATIVE
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
31 #else // either we're under Unix or wish to always use config files
32 #include "wx/fileconf.h"
33 #define wxConfig wxFileConfig
36 #endif // wxUSE_CONFIG
38 #endif // _WX_CONFIG_H_BASE_