some fixes for AIX compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-12 15:23:00 +00:00
parent 0138c2de79
commit 1bfcb0b6c3
5 changed files with 31 additions and 24 deletions

View File

@@ -26,6 +26,10 @@
#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]; }