X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/163f315474dbed303b55fa7bf1d98651741164ec..221ed5767f7ef4d51b0bbef50ec9f53edfaa46f2:/src/common/socket.cpp?ds=sidebyside 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;