diff --git a/common/settings/json_settings.cpp b/common/settings/json_settings.cpp index a3a6ba7a77..1bc5aa533a 100644 --- a/common/settings/json_settings.cpp +++ b/common/settings/json_settings.cpp @@ -33,6 +33,8 @@ #include #include #include +#include + const wxChar* const traceSettings = wxT( "KICAD_SETTINGS" ); @@ -390,7 +392,7 @@ bool JSON_SETTINGS::SaveToFile( const wxString& aDirectory, bool aForce ) std::stringstream buffer; buffer << std::setw( 2 ) << *this << std::endl; - wxFile file( path.GetFullPath(), wxFile::write ); + wxFFile file( path.GetFullPath(), "wb" ); if( !file.IsOpened() || !file.Write( buffer.str().c_str(), buffer.str().size() ) ) {