bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isnan function conflicts with C++ standard library declarations


From: Bruno Haible
Subject: Re: isnan function conflicts with C++ standard library declarations
Date: Fri, 30 Aug 2019 00:02:46 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-159-generic; KDE/5.18.0; x86_64; ; )

Martin Storsjö wrote:
> >> I ran into it while trying to build gettext with clang (with my pure-llvm
> >> based toolchain, at https://github.com/mstorsjo/llvm-mingw in case you're
> >> interested), so I presume there's something that goes different in gettext
> >> with clang/lld compared to gcc
> >
> > Yes. It would make sense to compare the config.status file generated by an 
> > llvm
> > build with those generated by a gcc build.
> 
> Just for the record, I believe the root cause is the fact that libc++'s 
> stdlib.h (which is included before the normal C runtime's stdlib.h) 
> includes math.h since this change: https://reviews.llvm.org/D60097

Thanks for the investigation. That explains it indeed, because the C++ files
of gettext do include <stdlib.h> but not <math.h> directly.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]