|
Message-ID: <878u0yln3q.fsf@gmail.com> Date: Thu, 31 Mar 2016 16:48:41 +0200 From: Christian Neukirchen <chneukirchen@...il.com> To: musl@...ts.openwall.com Subject: Re: Defining __STDC_ISO_10646__, __STDC_IEC_559__ and so on with musl? Szabolcs Nagy <nsz@...t70.net> writes: > * Masanori Ogino <masanori.ogino@...il.com> [2016-03-31 20:34:22 +0900]: >> 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 > > yes, this is the right approach we just never got > around adding it. i think it should contain > > #if __GCC_IEC_559 > 0 > #define __STDC_IEC_559__ 1 > #endif > > #if __GCC_IEC_559_COMPLEX > 0 > #define __STDC_IEC_559_COMPLEX__ 1 > #endif > > #define __STDC_ISO_10646__ 201505L What about clang? I don't see similar predefined macros there. -- Christian Neukirchen <chneukirchen@...il.com> http://chneukirchen.org
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.