X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba14d9861d043d53cc53ea70a2fab4146f7be9f3..17234b26448daee577d6c536cbe23a1301f3d959:/include/wx/gsocket.h?ds=sidebyside diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index 62a7b9a2d6..40f367c6cc 100644 --- a/include/wx/gsocket.h +++ b/include/wx/gsocket.h @@ -13,6 +13,14 @@ #ifndef __GSOCKET_STANDALONE__ #include "wx/setup.h" + +// kludge for GTK.. gsockgtk.c craps out miserably if we include +// defs.h ... no idea how other files get away with it.. + +#if !defined( __WXMSW__ ) && !defined( WXDLLEXPORT ) +#define WXDLLEXPORT +#endif + #endif #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) @@ -233,7 +241,7 @@ void GSocket_SetTimeout(GSocket *socket, unsigned long millisec); * operations do not clear this back to GSOCK_NOERROR, so use it only * after an error. */ -GSocketError GSocket_GetError(GSocket *socket); +GSocketError WXDLLEXPORT GSocket_GetError(GSocket *socket); /* Callbacks */