Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 08 Feb 2013 17:51:41 +0100
From: Jens Gustedt <jens.gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: Re: musl detection by preprocessor

Am Freitag, den 08.02.2013, 17:41 +0100 schrieb Szabolcs Nagy:
> * Jens Gustedt <jens.gustedt@...ia.fr> [2013-02-08 17:28:07 +0100]:
> > In short I have some problem where they (the gnus) deviate from
> > standard interfaces, here this was triggered by their different
> > iterface for strerror_r. Now the musl compiler wrapper doesn't allow
> > to distinguish a linux system with glibc or with musl (or at least I
> > didn'find one).
> > 
> > Inspecting the wrapper, it looks quite easy to add something like
> > 
> > -D__MUSL__=000909UL
> > 
> 
> can you use #ifdef __GLIBC__ ?

Hm, I don't think that this comes timely enough. Where would this be
defined, probably in some header file that I'd include, no?

I'd like to distinguish the platform as early as possible, ideally
*before* I include any files, such that I can base decisions on which
files to include only on #defines that the pure compiler provides.

Jens

-- 
:: INRIA Nancy Grand Est :: http://www.loria.fr/~gustedt/   ::
:: AlGorille ::::::::::::::: office Nancy : +33 383593090   ::
:: ICube :::::::::::::: office Strasbourg : +33 368854536   ::
:: ::::::::::::::::::::::::::: gsm France : +33 651400183   ::
:: :::::::::::::::::::: gsm international : +49 15737185122 ::



Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)

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.