Pre-include even more standard headers with MinGW/Cygwin

Avoid -Wredundant-decls when including them later by pre-including them
before enabling this warning.
This commit is contained in:
Vadim Zeitlin 2020-08-31 12:40:12 +02:00
parent 8b7ddbd0ac
commit 2a17eef2ed

View File

@ -86,6 +86,14 @@
#if defined(__WXMSW__)
#include <windows.h>
// Avoid warnings about redeclaring standard functions such as chmod() in
// various standard headers when using MinGW/Cygwin.
#if defined(__MINGW32__) || defined(__CYGWIN__)
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#endif
#elif defined(__WXQT__)
#include <QtGui/QFont>
#endif