X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8be97d65a6675eeaf0529dbb55f66d0eb5c5214f..4d91c1d1aebe7872e50c2e35b0a436cac9cee53c:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 518b8f5f79..97e65cc941 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -26,6 +26,10 @@ #include #include +#ifdef HAVE_STRINGS_H + #include // for strcasecmp() +#endif // AIX + #ifndef WX_PRECOMP #include "wx/defs.h" @@ -316,9 +320,10 @@ 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__) + // under Unix it is tested with configure, assume it works on other + // platforms (there might be overloading problems if size_t and int are + // the same type) +#if !defined(__UNIX__) || defined(wxUSE_SIZE_T_STRING_OPERATOR) // operator version of GetChar char operator[](size_t n) const { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }