]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow building with GCC 2.95.
authorMattia Barbon <mbarbon@cpan.org>
Sat, 19 Mar 2005 23:11:03 +0000 (23:11 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 19 Mar 2005 23:11:03 +0000 (23:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index ff320ac9264e6ea6150e1ac1a1bc646c483a3063..ce8b266ad7af739cf1bb565149a9c2bb144f9bc5 100644 (file)
@@ -259,8 +259,9 @@ void StringTestCase::ConversionUTF7()
     {
         { "+-", L"+" },
         { "+--", L"+-" },
     {
         { "+-", L"+" },
         { "+--", L"+-" },
+#if !defined(__GNUC__) || (__GNUC__ >= 3)
         { "+AKM-", L"\u00a3" },
         { "+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
         //
         // 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[] =
     {
 {
     static const StringConversionData utf8data[] =
     {
+#if !defined(__GNUC__) || (__GNUC__ >= 3)
         { "\xc2\xa3", L"\u00a3" },
         { "\xc2\xa3", L"\u00a3" },
+#endif
         { "\xc2", NULL },
     };
 
         { "\xc2", NULL },
     };