Re: [PATCH 0/3]: Add math support for non LDBL_EQ_DBL architecture

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <ZC7yAR/WFiYa//[email protected]>
On Apr  6 09:06, Joel Sherrill wrote:
> On Thu, Apr 6, 2023 at 4:00 AM Corinna Vinschen <[email protected]> wrote:
> > The way we install header files is that first, the newlib headers are
> > installed, and then, second, Cygwin headers are installed, thus
> > overriding newlib headers with Cygwin headers as required.  We have to
> > maintain <endian.h> for userspace compatibility, but after the
> > installation user will find two different versions of endian.h,
> > one in /usr/include, one in /usr/include/sys.
> >
> > Would it make a lot of problems to move <sys/endian.h> to <endian.h>?
> >
> 
> Probably not. Just a matter of the final <endian.h> being a proper union
> of the two.

There's no union in fact.  The Cygwin file *will* override the newlib
file and that's how it's supposed to be.  Actually, after Jennifer's
stuff is in, I'll check if Cygwin can get away with using newlib's
version.  It's kind of hacky to have two versions in the tree which
basically provide the same definitions which don't even differ by
architecture.


Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.