From 1dcc6c94835ffac8601977296a9e661ffd9c3769 Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 23 Mar 2003 05:02:56 +0000 Subject: [PATCH] STLport workaround --- integer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/integer.cpp b/integer.cpp index e18507fd..3c94b530 100644 --- a/integer.cpp +++ b/integer.cpp @@ -2736,14 +2736,11 @@ template static Integer StringToInteger(const T *str) { word radix; -#if (defined(__GNUC__) && __GNUC__ <= 3) // GCC workaround + // GCC workaround // std::char_traits doesn't exist in GCC 2.x - // std::char_traits::length() not defined in GCC 3.2 + // std::char_traits::length() not defined in GCC 3.2 and STLport 4.5.3 unsigned int length; for (length = 0; str[length] != 0; length++) {} -#else - unsigned int length = std::char_traits::length(str); -#endif Integer v;