]> git.saurik.com Git - wxWidgets.git/commitdiff
Provide implementation for GSocket_new
authorDavid Elliott <dfe@tgwbd.org>
Mon, 16 Aug 2004 02:43:04 +0000 (02:43 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Mon, 16 Aug 2004 02:43:04 +0000 (02:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;
+}
+
 
 /*
  * -------------------------------------------------------------------------