From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9792 Path: news.gmane.org!not-for-mail From: Christian Neukirchen Newsgroups: gmane.linux.lib.musl.general Subject: Re: Defining __STDC_ISO_10646__, __STDC_IEC_559__ and so on with musl? Date: Thu, 31 Mar 2016 16:48:41 +0200 Message-ID: <878u0yln3q.fsf@gmail.com> References: <20160331143547.GP9862@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459435740 7039 80.91.229.3 (31 Mar 2016 14:49:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 14:49:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9805-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 31 16:48:59 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aldu6-0006Fx-3U for gllmg-musl@m.gmane.org; Thu, 31 Mar 2016 16:48:58 +0200 Original-Received: (qmail 24169 invoked by uid 550); 31 Mar 2016 14:48:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 24151 invoked from network); 31 Mar 2016 14:48:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=tGUPJqxAmUuhI003f/lUBcyuk35ok5yiTTdfiXc7UYk=; b=b27JNp020/MgGERV54T3Nuer3DiH49U32DMUs8cldWx6q1vVKpwDyYKiHB1s3wbU49 M8mINDaDtbQQG+G2nBkIgNdPy9i44kla1cjYsblx6gUTM00472oBUaBjJWQp9UEXNGKK qv5biMUCl7q5D8i7ReBYmhUkga38PA6xdWALFhDUCdbmKW5qi8NrPXe4r5J9FFBNYeRM Wyne+GDf/iAeyFZh9Ho3Oa11GNBPpbLdOfA7JGxyiYXLFnbM60q3cKVtwuVvRNHGxaCd NGyB73CyaDTFHtJbwNkObRNbBiBncqZ6vyHTSAnhH+NvlkEfcrqJm8oe8vITzT7iN/cR codg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tGUPJqxAmUuhI003f/lUBcyuk35ok5yiTTdfiXc7UYk=; b=km0zhtyzqxUcMUDXqRbyA/GRLYafO9fZBKaD9VdpyrN3480e5f39ucpVisVjQ4QOii hZp0uPzt0hEQcAodqx5Dj7Gn1QYgld8MIINZHL+RusY1rZBugwb7S9fjwU9wAVcB6RHV uu7TVWVlm0rQ7/l94wORO3Z6+xBU48JDSHLqqJj5vui55F+bjY//YBcP+1dm5S8XKtoK Kd/3YuKYBbcrHS++pKh2ljhRFkeDamz4bsWr5Yaszqj4eDQItCz6F9YUFr8klvUVUbQe bjKihIDvtTGzcH2lGDdeJoF4GMj3EooNmIXiQ+zKpoD7YcBSxCs5q/A0VCDXrXrmSlWB VYCg== X-Gm-Message-State: AD7BkJI9gWAtmprf/tkzBBWQ+niYNjseeoLv7Hopcl+TS6zfgJqICVjCIL7pk4aIvvUfXA== X-Received: by 10.28.47.210 with SMTP id v201mr395001wmv.56.1459435722839; Thu, 31 Mar 2016 07:48:42 -0700 (PDT) In-Reply-To: <20160331143547.GP9862@port70.net> (Szabolcs Nagy's message of "Thu, 31 Mar 2016 16:35:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Xref: news.gmane.org gmane.linux.lib.musl.general:9792 Archived-At: Szabolcs Nagy writes: > * Masanori Ogino [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 http://chneukirchen.org