This is an automated email from the ASF dual-hosted git repository.

borisk pushed a commit to branch xerces-3.3
in repository https://gitbox.apache.org/repos/asf/xerces-c.git


The following commit(s) were added to refs/heads/xerces-3.3 by this push:
     new 499a36971 Use correct preprocessor directives to check for HAVE_* 
macros
499a36971 is described below

commit 499a36971941a5a7c1243a0598dbc2325fb7e719
Author: Boris Kolpackov <bo...@codesynthesis.com>
AuthorDate: Tue Feb 4 14:55:40 2025 +0200

    Use correct preprocessor directives to check for HAVE_* macros
    
    Fixes Jira issue XERCESC-2260.
---
 src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in |  8 ++++----
 src/xercesc/util/Xerces_autoconf_config.hpp.in       | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in 
b/src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in
index 0d99e08aa..c045210e7 100644
--- a/src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in
+++ b/src/xercesc/util/Xerces_autoconf_config.hpp.cmake.in
@@ -95,16 +95,16 @@
 #if defined(__cplusplus) && defined(XERCES_HAVE_CSTDINT)
 #  include <cstdint>
 #endif
-#if XERCES_HAVE_STDINT_H
+#ifdef XERCES_HAVE_STDINT_H
 #  include <stdint.h>
 #endif
-#if XERCES_HAVE_INTTYPES_H
+#ifdef XERCES_HAVE_INTTYPES_H
 #  include <inttypes.h>
 #endif
-#if XERCES_HAVE_SYS_TYPES_H
+#ifdef XERCES_HAVE_SYS_TYPES_H
 #  include <sys/types.h>
 #endif
-#if XERCES_INCLUDE_WCHAR_H
+#ifdef XERCES_INCLUDE_WCHAR_H
 #  include <wchar.h>
 #endif
 
diff --git a/src/xercesc/util/Xerces_autoconf_config.hpp.in 
b/src/xercesc/util/Xerces_autoconf_config.hpp.in
index aaf70fb98..3e5f57219 100644
--- a/src/xercesc/util/Xerces_autoconf_config.hpp.in
+++ b/src/xercesc/util/Xerces_autoconf_config.hpp.in
@@ -87,21 +87,21 @@
 // ---------------------------------------------------------------------------
 //  Include standard headers, if available, that we may rely on below.
 // ---------------------------------------------------------------------------
-#if defined(__cplusplus) && XERCES_HAVE_CSTDINT
+#if defined(__cplusplus) && defined(XERCES_HAVE_CSTDINT)
 #      include <cstdint>
-#elif XERCES_HAVE_STDINT_H
+#elif defined(XERCES_HAVE_STDINT_H)
 #              if defined(__cplusplus)
 #                      define __STDC_LIMIT_MACROS
 #              endif
 #              include <stdint.h>
 #endif
-#if XERCES_HAVE_INTTYPES_H
+#ifdef XERCES_HAVE_INTTYPES_H
 #      include <inttypes.h>
 #endif
-#if XERCES_HAVE_SYS_TYPES_H
+#ifdef XERCES_HAVE_SYS_TYPES_H
 #      include <sys/types.h>
 #endif
-#if XERCES_INCLUDE_WCHAR_H
+#ifdef XERCES_INCLUDE_WCHAR_H
 #      include <wchar.h>
 #endif
 


---------------------------------------------------------------------
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