From 6114fa035095cbc714bed6c8bfee5bb97599d071 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Jun 2012 23:23:11 +0000 Subject: [PATCH 1/1] Only use Unix sockets API under Unix in wxGTK. wxGTK can now be used under Windows where Unix sockets are not available, add a __UNIX__ preprocessor check. Closes #14407. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/sockgtk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/sockgtk.cpp b/src/gtk/sockgtk.cpp index 1d42a36482..c0f1b4f6cb 100644 --- a/src/gtk/sockgtk.cpp +++ b/src/gtk/sockgtk.cpp @@ -12,7 +12,7 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#if wxUSE_SOCKETS +#if wxUSE_SOCKETS && defined(__UNIX__) #include "wx/apptrait.h" #include "wx/private/fdiomanager.h" @@ -67,4 +67,4 @@ wxFDIOManager *wxGUIAppTraits::GetFDIOManager() return &s_manager; } -#endif // wxUSE_SOCKETS +#endif // wxUSE_SOCKETS && __UNIX__ -- 2.45.2