]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/gsocket.cpp
debug handling. More broken Apple 'goodness'
[wxWidgets.git] / src / mac / carbon / gsocket.cpp
index 20459b7d0dcf7fd875efffb35b81baf29fcfc425..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;
+}
+
 
 /*
  * -------------------------------------------------------------------------
@@ -1323,9 +1333,9 @@ GSocketError GAddress_INET_SetHostAddress(GAddress *address,
 
 struct service_entry 
 {
-       char * name ;
+       const char * name ;
        unsigned short port ;
-       char * protocol ; 
+       const char * protocol ; 
 } ;
 typedef struct service_entry service_entry ;