Adam Mitz created XERCESC-2146:
----------------------------------

             Summary: Patch to build with older GCC
                 Key: XERCESC-2146
                 URL: https://issues.apache.org/jira/browse/XERCESC-2146
             Project: Xerces-C++
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 3.2.1
            Reporter: Adam Mitz


{{Index: src/xercesc/util/XMLExceptMsgs.hpp}}
{{===================================================================}}
{{--- src/xercesc/util/XMLExceptMsgs.hpp (revision 1831379)}}
{{+++ src/xercesc/util/XMLExceptMsgs.hpp (working copy)}}
{{@@ -9,7 +9,7 @@}}
{{ XERCES_CPP_NAMESPACE_BEGIN}}

{{ // Ignore warning about private constructor}}
{{-#ifdef __GNUC__}}
{{+#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 
5))}}
{{ # pragma GCC diagnostic push}}
{{ # pragma GCC diagnostic ignored "-Wctor-dtor-privacy"}}
{{ #endif}}
{{@@ -398,7 +398,7 @@}}
{{ XMLExcepts();}}
{{ };}}

{{-#ifdef __GNUC__}}
{{+#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 
5))}}
{{ # pragma GCC diagnostic pop}}
{{ #endif}}

{{Index: src/xercesc/util/XMLUni.hpp}}
{{===================================================================}}
{{--- src/xercesc/util/XMLUni.hpp (revision 1831379)}}
{{+++ src/xercesc/util/XMLUni.hpp (working copy)}}
{{@@ -36,7 +36,7 @@}}
{{ XERCES_CPP_NAMESPACE_BEGIN}}

{{ // Ignore warning about private constructor}}
{{-#ifdef __GNUC__}}
{{+#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 
5))}}
{{ # pragma GCC diagnostic push}}
{{ # pragma GCC diagnostic ignored "-Wctor-dtor-privacy"}}
{{ #endif}}
{{@@ -334,7 +334,7 @@}}
{{ XMLUni();}}
{{ };}}

{{-#ifdef __GNUC__}}
{{+#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 
5))}}
{{ # pragma GCC diagnostic pop}}
{{ #endif}}

{{Index: src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in}}
{{===================================================================}}
{{--- src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in (revision 1831379)}}
{{+++ src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in (working copy)}}
{{@@ -92,7 +92,7 @@}}
{{ // 
---------------------------------------------------------------------------}}
{{ // Include standard headers, if available, that we may rely on below.}}
{{ // 
---------------------------------------------------------------------------}}
{{-#if defined(__cplusplus) && defined(HAVE_CSTDINT)}}
{{+#if defined(__cplusplus) && defined(XERCES_HAVE_CSTDINT)}}
{{ # include <cstdint>}}
{{ #endif}}
{{ #if XERCES_HAVE_STDINT_H}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to