[ 
https://issues.apache.org/jira/browse/XERCESC-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17923691#comment-17923691
 ] 

Boris Kolpackov commented on XERCESC-2260:
------------------------------------------

Fixed in the 3.3 branch (also for the autoconf header). Thanks for the report 
and the patch!

> 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
>            Priority: Major
>         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 
> configuration step and then defines symbols if these are headers are found.
> If the headers are not found, the symbols are just not defined (instead of 
> 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 
> undefined symbols.
>  
> I've attached a patch switching which fixes the problem for me.



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

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