diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 900af8efd2..1049a28dcb 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -198,7 +198,7 @@ enum wxPosixPermissions #elif wxCHECK_MINGW32_VERSION(3, 5) // mingw-runtime version (not gcc) #define wxHAS_HUGE_STDIO_FILES - wxDECL_FOR_STRICT_MINGW32(int, fseeko64, (FILE*, long long, int)); + wxDECL_FOR_STRICT_MINGW32(int, fseeko64, (FILE*, long long, int)) #define wxFseek fseeko64 #ifdef wxNEEDS_STRICT_ANSI_WORKAROUNDS diff --git a/include/wx/math.h b/include/wx/math.h index ba298f17b0..5975804627 100644 --- a/include/wx/math.h +++ b/include/wx/math.h @@ -72,7 +72,7 @@ #define wxFinite(x) isfinite(x) #endif #elif defined(wxNEEDS_STRICT_ANSI_WORKAROUNDS) - wxDECL_FOR_STRICT_MINGW32(int, _finite, (double)); + wxDECL_FOR_STRICT_MINGW32(int, _finite, (double)) #define wxFinite(x) _finite(x) #elif ( defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \ diff --git a/include/wx/msw/gccpriv.h b/include/wx/msw/gccpriv.h index cabda414e2..b12efa9b2c 100644 --- a/include/wx/msw/gccpriv.h +++ b/include/wx/msw/gccpriv.h @@ -159,7 +159,7 @@ standard headers (e.g. ) and we don't want to duplicate this hack everywhere this happens. */ - wxDECL_FOR_STRICT_MINGW32(double, _hypot, (double, double)); + wxDECL_FOR_STRICT_MINGW32(double, _hypot, (double, double)) #else #define wxDECL_FOR_STRICT_MINGW32(rettype, func, params) #endif diff --git a/src/common/wxcrt.cpp b/src/common/wxcrt.cpp index 1eeab52c86..8014a0a89f 100644 --- a/src/common/wxcrt.cpp +++ b/src/common/wxcrt.cpp @@ -73,9 +73,9 @@ #include #endif -wxDECL_FOR_STRICT_MINGW32(int, vswprintf, (wchar_t*, const wchar_t*, __VALIST)); -wxDECL_FOR_STRICT_MINGW32(int, _putws, (const wchar_t*)); -wxDECL_FOR_STRICT_MINGW32(void, _wperror, (const wchar_t*)); +wxDECL_FOR_STRICT_MINGW32(int, vswprintf, (wchar_t*, const wchar_t*, __VALIST)) +wxDECL_FOR_STRICT_MINGW32(int, _putws, (const wchar_t*)) +wxDECL_FOR_STRICT_MINGW32(void, _wperror, (const wchar_t*)) WXDLLIMPEXP_BASE size_t wxMB2WC(wchar_t *buf, const char *psz, size_t n) { diff --git a/src/unix/dir.cpp b/src/unix/dir.cpp index f88a594935..e4e9bcffd2 100644 --- a/src/unix/dir.cpp +++ b/src/unix/dir.cpp @@ -100,6 +100,9 @@ wxDirData::wxDirData(const wxString& dirname) // do open the dir m_dir = opendir(m_dirname.fn_str()); + + wxLogSysError(12, _("Cannot enumerate files in directory '%s'"), + m_dirname.c_str()); } wxDirData::~wxDirData()