|
Message-ID: <20111011041015.GU132@brightrain.aerifal.cx> Date: Tue, 11 Oct 2011 00:10:15 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: missing extern "C" block On Mon, Oct 10, 2011 at 08:49:46PM -0700, Isaac Dunham wrote: > On Mon, 10 Oct 2011 18:44:49 +0200 > Szabolcs Nagy <nsz@...t70.net> wrote: > > > while we are fixing c++ compatibility > > some headers with function prototypes > > do not have extern "C" block for c++ > > <snip list> > > I'm certainly not saying that this is the right way to handle it, > but this is what GNU libc uses __BEGIN_DECLS & __END_DECLS for (in > sys/cdefs.h). Definitely not the right way. It's a lot slower, and it's not immediately obvious to somebody reading the code what the definitions of these macros might be. The right fix is the audit that was just done, and applying the results of it to fix errors and omissions. Rich
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.