mailing list of musl libc
 help / color / mirror / code / Atom feed
* Defining __STDC_ISO_10646__, __STDC_IEC_559__ and so on with musl?
@ 2016-03-31 11:34 Masanori Ogino
  2016-03-31 14:35 ` Szabolcs Nagy
  0 siblings, 1 reply; 6+ messages in thread
From: Masanori Ogino @ 2016-03-31 11:34 UTC (permalink / raw)
  To: musl

Hello,

The C standard specifies some predefined macros to determine
implementation-dependent characteristics, e.g. __STDC_ISO_10646__.
However, it seems that those macros are omitted with musl-based
toolchains. (I read cross-musl patches and tested with Gentoo's musl
toolchain.)

glibc handles them using a small header file named stdc-predef.h and a
hook to GCC. (glibc has the header separately and GCC treats it
specially since the macros should be defined even if the source code
doesn't include any headers.)

Could we provide the macros with similar approaches or patches to GCC
to just define them?

-- 
Masanori Ogino


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

end of thread, other threads:[~2016-03-31 14:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-31 11:34 Defining __STDC_ISO_10646__, __STDC_IEC_559__ and so on with musl? Masanori Ogino
2016-03-31 14:35 ` Szabolcs Nagy
2016-03-31 14:48   ` Christian Neukirchen
2016-03-31 14:54     ` Masanori Ogino
2016-03-31 14:49   ` Rich Felker
2016-03-31 14:50   ` Masanori Ogino

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).