diff --git a/demos/forty/scorefil.cpp b/demos/forty/scorefil.cpp index 96f66d3198..9d60a32cd6 100644 --- a/demos/forty/scorefil.cpp +++ b/demos/forty/scorefil.cpp @@ -20,11 +20,6 @@ #include "wx/wx.h" #endif -#ifdef __WXGTK__ -#include -#include -#include -#endif #include "wx/textfile.h" #include "wx/config.h" #include "wx/fileconf.h" diff --git a/src/gtk/dirdlg.cpp b/src/gtk/dirdlg.cpp index c6655fdaef..07cc55c8d1 100644 --- a/src/gtk/dirdlg.cpp +++ b/src/gtk/dirdlg.cpp @@ -31,7 +31,9 @@ #include "wx/gtk/private.h" +#ifdef __UNIX__ #include // chdir +#endif //----------------------------------------------------------------------------- // "clicked" for OK-button diff --git a/src/gtk/filedlg.cpp b/src/gtk/filedlg.cpp index a9359fa3ff..6ba8320312 100644 --- a/src/gtk/filedlg.cpp +++ b/src/gtk/filedlg.cpp @@ -22,7 +22,9 @@ #include #include "wx/gtk/private.h" +#ifdef __UNIX__ #include // chdir +#endif #include "wx/filename.h" // wxFilename #include "wx/tokenzr.h" // wxStringTokenizer diff --git a/src/gtk/filepicker.cpp b/src/gtk/filepicker.cpp index f457717e8a..b3d16788a3 100644 --- a/src/gtk/filepicker.cpp +++ b/src/gtk/filepicker.cpp @@ -144,7 +144,9 @@ void wxFileButton::SetInitialDirectory(const wxString& dir) #if wxUSE_DIRPICKERCTRL && defined(__WXGTK26__) +#ifdef __UNIX__ #include // chdir +#endif //----------------------------------------------------------------------------- // "current-folder-changed" diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index abe0d0424c..0d1add821a 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -45,8 +45,9 @@ #include #include #include -#include // for WNOHANG +#ifdef __UNIX__ #include +#endif #if wxUSE_DETECT_SM #include