]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/config.h
Cast for argument to delete[] - VC6 doesn't want to delete a const pointer
[wxWidgets.git] / include / wx / config.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: config.h
3// Purpose: wxConfig base header
4// Author: Julian Smart
5// Modified by:
6// Created:
7// Copyright: (c) Julian Smart
8// RCS-ID: $Id$
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CONFIG_H_BASE_
13#define _WX_CONFIG_H_BASE_
14
15#include "wx/defs.h"
16#include "wx/confbase.h"
17
18// ----------------------------------------------------------------------------
19// define the native wxConfigBase implementation
20// ----------------------------------------------------------------------------
21
22// under Windows we prefer to use the native implementation but can be forced
23// to use the file-based one
24#if defined(__WXMSW__) && 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#elif defined(__WXPALMOS__) && wxUSE_CONFIG_NATIVE
31 #include "wx/palmos/prefconf.h"
32 #define wxConfig wxPrefConfig
33#else // either we're under Unix or wish to always use config files
34 #include "wx/fileconf.h"
35 #define wxConfig wxFileConfig
36#endif
37
38#endif // _WX_CONFIG_H_BASE_