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:
parent
8b7ddbd0ac
commit
2a17eef2ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user