X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bfcb0b6c3728b9e3e970c8569cf6405df9ff4f9..103aec296a2c017f915b4b2b2584191fdb716a75:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 2efa205fe2..50f9fbf4a1 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -26,7 +26,7 @@ #include #include -#ifdef __AIX__ +#ifdef HAVE_STRINGS_H #include // for strcasecmp() #endif // AIX @@ -320,8 +320,10 @@ public: char& Last() { wxASSERT( !IsEmpty() ); CopyBeforeWrite(); return m_pchData[Len()-1]; } - // on Linux-Alpha and AIX this gives overload problems -#if !(defined(__ALPHA__) || defined(__AIX__)) + // 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__) || wxUSE_SIZE_T_STRING_OPERATOR // operator version of GetChar char operator[](size_t n) const { ASSERT_VALID_INDEX( n ); return m_pchData[n]; }