[jira] [Resolved] (XERCESC-2260) Header include test uses #if instead of #ifdef

"Boris Kolpackov (Jira)" <[email protected]> Tue, 4 Feb 2025 13:00:00 +0000 (UTC)
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/XERCESC-2260?page=3Dcom.atlass=
ian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Kolpackov resolved XERCESC-2260.
--------------------------------------
    Fix Version/s: 3.3.1
         Assignee: Boris Kolpackov
       Resolution: Fixed

> Header include test uses #if instead of #ifdef
> ----------------------------------------------
>
>                 Key: XERCESC-2260
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2260
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.2.4
>         Environment: pkgsrc (on NetBSD)
>            Reporter: Thomas Klausner
>            Assignee: Boris Kolpackov
>            Priority: Major
>             Fix For: 3.3.1
>
>         Attachments: patch-src_xercesc_util_Xerces__autoconf__config.hpp.=
cmake.in
>
>
> When building xerces-c 3.2.4, it detects some system headers during the c=
onfiguration step and then defines symbols if these are headers are found.
> If the headers are not found, the symbols are just not defined (instead o=
f being defined to the value zero).
> However, the installed header files (that other projects use) check these=
 symbols with `#if` instead of `#ifdef`, which doesn't work well with undef=
ined symbols.
> =C2=A0
> I've attached a patch switching which fixes the problem for me.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)