]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
compilation fix for Borland C++
[wxWidgets.git] / src / common / fileconf.cpp
index 229e7a8b8d55109357947f3b0fe000647de8574a..7a82bf45aebc553ce04dfa65a3fa61053904d81c 100644 (file)
@@ -918,6 +918,8 @@ bool wxFileConfig::DoReadLong(const wxString& key, long *pl) const
     return str.ToLong(pl);
 }
 
+#if wxUSE_BASE64
+
 bool wxFileConfig::DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const
 {
     wxCHECK_MSG( buf, false, _T("NULL buffer") );
@@ -930,6 +932,8 @@ bool wxFileConfig::DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const
     return true;
 }
 
+#endif // wxUSE_BASE64
+
 bool wxFileConfig::DoWriteString(const wxString& key, const wxString& szValue)
 {
     wxConfigPathChanger     path(this, key);
@@ -995,11 +999,15 @@ bool wxFileConfig::DoWriteLong(const wxString& key, long lValue)
   return Write(key, wxString::Format(_T("%ld"), lValue));
 }
 
+#if wxUSE_BASE64
+
 bool wxFileConfig::DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf)
 {
   return Write(key, wxBase64Encode(buf));
 }
 
+#endif // wxUSE_BASE64
+
 bool wxFileConfig::Flush(bool /* bCurrentOnly */)
 {
   if ( !IsDirty() || !m_fnLocalFile.GetFullPath() )