Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120823065154.GB10731@port70.net>
Date: Thu, 23 Aug 2012 08:51:54 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] Problem is static inline

* idunham@...abit.com <idunham@...abit.com> [2012-08-22 23:11:38 -0700]:
> > I've been trying to get musl compatability patches for libuv merged
> > upstream, and I have it building, but there's one sticking point:
> > Upstream insists on using --std=c89 (I guess for portability to other
> > platforms).
> > This makes GCC choke on "long" in <bits/syscall.h>.
> I tried fixing it, and ended up finding that the issue was the "static
> inline" in the header.
> 

note that there are other c99isms in header files

eg any header that references a 64 bit int type
will pull in long long which is not c89

and in math.h a compound literal is used to
manipulate floatingpoint representation

these can be worked around with some ifdefs
if strict ansi c support is needed..

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.