Fix building wxIniConfig when wxUSE_BASE64=0

Use guards for wxUSE_BASE64 just as wxConfigBase does.
This commit is contained in:
PB
2022-04-30 16:29:13 +02:00
parent 74c0fe6dcc
commit 4ddaa9c0ce
2 changed files with 8 additions and 0 deletions

View File

@@ -81,11 +81,15 @@ protected:
// read/write
bool DoReadString(const wxString& key, wxString *pStr) const wxOVERRIDE;
bool DoReadLong(const wxString& key, long *plResult) const wxOVERRIDE;
#if wxUSE_BASE64
bool DoReadBinary(const wxString& key, wxMemoryBuffer *buf) const wxOVERRIDE;
#endif // wxUSE_BASE64
bool DoWriteString(const wxString& key, const wxString& szValue) wxOVERRIDE;
bool DoWriteLong(const wxString& key, long lValue) wxOVERRIDE;
#if wxUSE_BASE64
bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf) wxOVERRIDE;
#endif // wxUSE_BASE64
private:
// helpers