From c579f80892a919fc8408bf7b366ab3d86d4f38f0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Jun 2009 03:35:38 +0000 Subject: [PATCH] avoid name clashes with GSocket from glib 2.21+ (closes #10883) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/gsockgtk.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gtk/gsockgtk.cpp b/src/gtk/gsockgtk.cpp index 390b19982e..eb7e78e6c2 100644 --- a/src/gtk/gsockgtk.cpp +++ b/src/gtk/gsockgtk.cpp @@ -15,8 +15,13 @@ #include #include +// newer versions of glib define its own GSocket but we unfortunately use this +// name in our own (semi-)public header and so can't change it -- rename glib +// one instead +#define GSocket GlibGSocket #include #include +#undef GSocket #include "wx/gsocket.h" #include "wx/unix/gsockunx.h"