X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba14d9861d043d53cc53ea70a2fab4146f7be9f3..d38e8d5f34262fa688cd0e5d397a2201978e5fa7:/include/wx/gsocket.h diff --git a/include/wx/gsocket.h b/include/wx/gsocket.h index 62a7b9a2d6..85c5cedd80 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 */