X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56601ff2db94ccc874107eb60c4564ceb47f6d02..05b4b8ee882d86d1095efe72e5c866d80bb4cc95:/include/wx/confbase.h diff --git a/include/wx/confbase.h b/include/wx/confbase.h index 30d436b3e4..5192df40db 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -2,11 +2,11 @@ // Name: confbase.h // Purpose: declaration of the base class of all config implementations // (see also: fileconf.h and msw/regconf.h and iniconf.h) -// Author: Karsten Ballüder & Vadim Zeitlin +// Author: Karsten Ballueder & Vadim Zeitlin // Modified by: // Created: 07.04.98 (adapted from appconf.h) // RCS-ID: $Id$ -// Copyright: (c) 1997 Karsten Ballüder Ballueder@usa.net +// Copyright: (c) 1997 Karsten Ballueder Ballueder@usa.net // Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -185,8 +185,8 @@ public: // no default version since it does not make sense for binary data #endif // wxUSE_BASE64 - // Causes ambiguities in VC++ 6 (at least) -#if (!defined(__VISUALC__) || __VISUALC__ > 1200) + // Causes ambiguities in VC++ 6 and OpenVMS (at least) +#if ( (!defined(__VISUALC__) || __VISUALC__ > 1200) && !defined( __VMS ) && !defined (__DMC__)) // read other types, for which wxFromString is defined template bool Read(const wxString& key, T* value) const @@ -294,8 +294,8 @@ public: bool Write(const wxString& key, float value) { return DoWriteDouble(key, value); } - // Causes ambiguities in VC++ 6 (at least) -#if (!defined(__VISUALC__) || __VISUALC__ > 1200) + // Causes ambiguities in VC++ 6 and OpenVMS (at least) +#if ( (!defined(__VISUALC__) || __VISUALC__ > 1200) && !defined( __VMS ) && !defined (__DMC__)) // for other types, use wxToString() template bool Write(const wxString& key, T const& value) @@ -428,18 +428,6 @@ private: }; -// ---------------------------------------------------------------------------- -// the native wxConfigBase implementation -// ---------------------------------------------------------------------------- - -// under Windows we prefer to use the native implementation -// wxIniConfig isn't native anywhere after droping win16 in wxWidgets 2.6 -#if defined(__WXMSW__) && wxUSE_CONFIG_NATIVE - #define wxConfig wxRegConfig -#else // either we're under Unix or wish to use files even under Windows - #define wxConfig wxFileConfig -#endif - #endif // wxUSE_CONFIG /*