Add declarations to fix the build with MinGW 5.3.0 in C++11 mode
Fix the build with -std=c++11 (instead of -std=gnu++11) by providing even more declarations for the functions wrongly excluded from MinGW headers in "strict ANSI" mode ourselves.
This commit is contained in:
@@ -293,8 +293,12 @@ enum wxPosixPermissions
|
||||
#define wxCRT_OpenW _wopen
|
||||
#endif
|
||||
|
||||
wxDECL_FOR_STRICT_MINGW32(int, _wopen, (const wchar_t*, int, ...))
|
||||
wxDECL_FOR_STRICT_MINGW32(int, _waccess, (const wchar_t*, int))
|
||||
wxDECL_FOR_STRICT_MINGW32(int, _wchmod, (const wchar_t*, int))
|
||||
wxDECL_FOR_STRICT_MINGW32(int, _wmkdir, (const wchar_t*))
|
||||
wxDECL_FOR_STRICT_MINGW32(int, _wrmdir, (const wchar_t*))
|
||||
wxDECL_FOR_STRICT_MINGW32(int, _wstati64, (const wchar_t*, struct _stati64*))
|
||||
|
||||
#define wxCRT_AccessW _waccess
|
||||
#define wxCRT_ChmodW _wchmod
|
||||
|
Reference in New Issue
Block a user