]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/config.h
4df4b8dd087fbe4bd1feacd44a536da8fc5682c5
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxConfig base header
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_CONFIG_H_BASE_
12 #define _WX_CONFIG_H_BASE_
14 #include "wx/confbase.h"
18 // ----------------------------------------------------------------------------
19 // define the native wxConfigBase implementation
20 // ----------------------------------------------------------------------------
22 // under Windows we prefer to use the native implementation but can be forced
23 // to use the file-based one
24 #if defined(__WINDOWS__) && wxUSE_CONFIG_NATIVE
25 #include "wx/msw/regconf.h"
26 #define wxConfig wxRegConfig
27 #elif defined(__WXOS2__) && wxUSE_CONFIG_NATIVE
28 #include "wx/os2/iniconf.h"
29 #define wxConfig wxIniConfig
30 #else // either we're under Unix or wish to always use config files
31 #include "wx/fileconf.h"
32 #define wxConfig wxFileConfig
35 #endif // wxUSE_CONFIG
37 #endif // _WX_CONFIG_H_BASE_