From: Mattia Barbon <mbarbon@cpan.org>
Date: Sat, 19 Mar 2005 23:11:03 +0000 (+0000)
Subject:   Allow building with GCC 2.95.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fb52f6cf85e03abbcf69d3340ce8f8de7774c1f5

  Allow building with GCC 2.95.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp
index ff320ac926..ce8b266ad7 100644
--- a/tests/strings/strings.cpp
+++ b/tests/strings/strings.cpp
@@ -259,8 +259,9 @@ void StringTestCase::ConversionUTF7()
     {
         { "+-", L"+" },
         { "+--", L"+-" },
+#if !defined(__GNUC__) || (__GNUC__ >= 3)
         { "+AKM-", L"\u00a3" },
-
+#endif
         // Windows accepts invalid UTF-7 strings and so does our UTF-7
         // conversion code -- this is wrong IMO but the way it is for now
         //
@@ -284,7 +285,9 @@ void StringTestCase::ConversionUTF8()
 {
     static const StringConversionData utf8data[] =
     {
+#if !defined(__GNUC__) || (__GNUC__ >= 3)
         { "\xc2\xa3", L"\u00a3" },
+#endif
         { "\xc2", NULL },
     };