mailing list of musl libc
 help / color / mirror / code / Atom feed
* #define __MUSL__ in features.h
@ 2013-03-29 20:44 Daniel Cegiełka
  2013-03-29 21:00 ` Rich Felker
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Cegiełka @ 2013-03-29 20:44 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

Is it possible to add to the features.h __MUSL__ definition?

glibc can be identified by __GLIBC__, uclibc through __UCLIBC__ etc.

Daniel

[-- Attachment #2: Type: text/html, Size: 202 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: #define __MUSL__ in features.h
@ 2018-03-15 15:55 dgutson .
  0 siblings, 0 replies; 8+ messages in thread
From: dgutson . @ 2018-03-15 15:55 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

> On Fri, Mar 29, 2013 at 09:44:05PM +0100, Daniel Cegiełka wrote:
> > Is it possible to add to the features.h __MUSL__ definition?
> >
> > glibc can be identified by __GLIBC__, uclibc through __UCLIBC__ etc.
>
> Is this question in the FAQ yet? If not, it really should be. The
> answer is no, it won't be added, because it's a bug to assume a
> certain implementation has particular properties rather than testing.

That is a beautiful theory in an ideal world, but in the real world,

implementations have bugs, and sometimes we need to workaround these bugs.

(e.g. the FD* issue reported by Martin Galvan).

So when writing code that should work with different implementations, these

macros are needed to apply workarounds for implementation-specific bugs.

That's why all the rest of the C lib implementations do provide an identifying

macro, something that I think musl should also do, IMVHO.


    Daniel.


> So far, every time somebody's asked for this with a particular usage
> case in mind, the usage case was badly wrong, and would have broken
> support for the next release of musl...

>

> Rich



-- 
Who’s got the sweetest disposition?
One guess, that’s who?
Who’d never, ever start an argument?
Who never shows a bit of temperament?
Who's never wrong but always right?
Who'd never dream of starting a fight?
Who get stuck with all the bad luck?

[-- Attachment #2: Type: text/html, Size: 5457 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-15 15:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-29 20:44 #define __MUSL__ in features.h Daniel Cegiełka
2013-03-29 21:00 ` Rich Felker
2013-03-29 21:13   ` Daniel Cegiełka
2013-03-30 15:39   ` LM
2013-03-30 18:10     ` Szabolcs Nagy
2013-03-30 19:16     ` Strake
2013-03-31  1:42       ` Rich Felker
2018-03-15 15:55 dgutson .

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).