]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/gsockmot.cpp
Changes for mingw32/gcc-2.95
[wxWidgets.git] / src / motif / gsockmot.cpp
index af86c62dfb00fc49f100bd6ff3e68d6f2a993934..7d8dbf7e9964438d6cb53523967cf8a342404a02 100644 (file)
@@ -4,11 +4,16 @@
 // Purpose: GSocket: Motif part
 // CVSID:   $Id$
 // -------------------------------------------------------------------------
+
+#include "wx/setup.h"
+
+#if wxUSE_SOCKETS
+
 #include <stdlib.h>
 #include <X11/Intrinsic.h>
 #include <wx/gsocket.h>
 #include <wx/app.h>
-#include "../unix/gsockunx.h"
+#include <wx/unix/gsockunx.h>
 
 #define wxAPP_CONTEXT ((XtAppContext)wxTheApp->GetAppContext())
 
@@ -54,7 +59,7 @@ void _GSocket_GUI_Destroy(GSocket *socket)
   free(socket->m_gui_dependent);
 }
 
-void _GSocket_Install_Fallback(GSocket *socket, GSocketEvent event)
+void _GSocket_Install_Callback(GSocket *socket, GSocketEvent event)
 {
   int *m_id;
 
@@ -83,7 +88,7 @@ void _GSocket_Install_Fallback(GSocket *socket, GSocketEvent event)
   }
 }
 
-void _GSocket_Uninstall_Fallback(GSocket *socket, GSocketEvent event)
+void _GSocket_Uninstall_Callback(GSocket *socket, GSocketEvent event)
 {
   int c;
   int *m_id;
@@ -113,3 +118,5 @@ unsigned long GSocket_GetEventID(GSocket *socket)
 void GSocket_DoEvent(unsigned long evt_id)
 {
 }
+
+#endif // wxUSE_SOCKETS