]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
some fixes for AIX compilation
[wxWidgets.git] / include / wx / string.h
index 518b8f5f79732278439b9859b77982b9f1d51322..2efa205fe251c53055e2c7b8ebb7e528cf3d7853 100644 (file)
 #include <limits.h>
 #include <stdlib.h>
 
+#ifdef __AIX__
+    #include <strings.h>    // for strcasecmp()
+#endif // AIX
+
 #ifndef  WX_PRECOMP
   #include "wx/defs.h"
 
@@ -316,9 +320,8 @@ public:
     char& Last()
       { wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; }
 
-    // on alpha-linux this gives overload problems:
-    // Also on Solaris, so removing for now (JACS)
-#if ! defined(__ALPHA__)
+    // on Linux-Alpha and AIX this gives overload problems
+#if !(defined(__ALPHA__) || defined(__AIX__))
     // operator version of GetChar
     char  operator[](size_t n) const
       { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }