From 8db361882b83691f60856c19a3489fabceb2e60e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 14 Aug 2018 14:57:42 +0100 Subject: [PATCH] Fix compile error on Linux. --- common/richio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/richio.cpp b/common/richio.cpp index a8eefce9af..0e00fc277d 100644 --- a/common/richio.cpp +++ b/common/richio.cpp @@ -522,7 +522,7 @@ FILE_OUTPUTFORMATTER::FILE_OUTPUTFORMATTER( const wxString& aFileName, const wxC m_fp = wxFopen( aFileName, aMode ); if( !m_fp ) - THROW_IO_ERROR( std::strerror( errno ) ); + THROW_IO_ERROR( strerror( errno ) ); } @@ -536,7 +536,7 @@ FILE_OUTPUTFORMATTER::~FILE_OUTPUTFORMATTER() void FILE_OUTPUTFORMATTER::write( const char* aOutBuf, int aCount ) { if( fwrite( aOutBuf, (unsigned) aCount, 1, m_fp ) != 1 ) - THROW_IO_ERROR( std::strerror( errno ) ); + THROW_IO_ERROR( strerror( errno ) ); }