]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gsocket.c
OS/2 VisualAge doesn't know about lower case true and false and redefine a for loop...
[wxWidgets.git] / src / os2 / gsocket.c
index 44ff3ad5ff84be2beab7b638d5a318c725d61274..1eef6eb14c1c29e615b122d5f1659e347b6b2030 100644 (file)
@@ -57,7 +57,12 @@ int _System soclose(int);
 
 #include <string.h>
 #include <stdio.h>
-#include <stdlib.h>
+#if defined(__VISAGECPP__) && __IBMCPP__ < 400
+#  ifdef min
+#  undef min
+#  endif
+#  include <stdlib.h>
+#endif
 #include <stddef.h>
 #include <ctype.h>
 
@@ -80,19 +85,10 @@ int _System soclose(int);
 
 /* Global initialisers */
 
-#if !defined(__VISAGECPP__)
-
 int GSocket_Init()
 {
   return 1;
 }
-#else
-bool GSocket_Init()
-{
-  return 1;
-}
-
-#endif
 
 void GSocket_Cleanup()
 {