X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/163f315474dbed303b55fa7bf1d98651741164ec..9b69526274b023fa1460b29a92bea8bf82e4703f:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 003bd9dbcf..9df24e42c9 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -862,9 +862,10 @@ char *wxSocketBase::CallbackData(char *data) // decoupled from wx_socket_callback and thus they suffer from a variety // of problems. Avoid them where possible and use events instead. -static void LINKAGEMODE wx_socket_callback(GSocket * WXUNUSED(socket), - GSocketEvent notification, - char *cdata) +extern "C" +void LINKAGEMODE wx_socket_callback(GSocket * WXUNUSED(socket), + GSocketEvent notification, + char *cdata) { wxSocketBase *sckobj = (wxSocketBase *)cdata;