]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/gsocket.cpp
Compile fixes.
[wxWidgets.git] / src / mac / carbon / gsocket.cpp
index f7af7a1ca6cf6834a8eb85f02c8ba6ccca598885..c8c8586d3a517bbedd50a8eeb683cb60af23da7a 100644 (file)
@@ -1163,6 +1163,16 @@ int GSocket::Send_Dgram(const char *buffer, int size)
   return ret;
 }
 
+/* Compatibility functions for GSocket */
+GSocket *GSocket_new(void)
+{
+    GSocket *newsocket = new GSocket();
+    if(newsocket->IsOk())
+        return newsocket;
+    delete newsocket;
+    return NULL;
+}
+
 
 /*
  * -------------------------------------------------------------------------