diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-23 05:02:56 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-23 05:02:56 +0000 |
commit | 4b597550822763cd28d3e61b24a98c478a79d3a2 (patch) | |
tree | 6959243322241706878b2332d3dab135555915ba /integer.cpp | |
parent | 0f448d490272508037a463ef459c635cc2e2b800 (diff) | |
download | cryptopp-4b597550822763cd28d3e61b24a98c478a79d3a2.tar.gz |
STLport workaround
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@50 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'integer.cpp')
-rw-r--r-- | integer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/integer.cpp b/integer.cpp index e18507f..3c94b53 100644 --- a/integer.cpp +++ b/integer.cpp @@ -2736,14 +2736,11 @@ template <class T> 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<wchar_t>::length() not defined in GCC 3.2 + // std::char_traits<wchar_t>::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<T>::length(str); -#endif Integer v; |