From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9790 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: Defining __STDC_ISO_10646__, __STDC_IEC_559__ and so on with musl? Date: Thu, 31 Mar 2016 20:34:22 +0900 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1459424084 8097 80.91.229.3 (31 Mar 2016 11:34:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2016 11:34:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9803-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 31 13:34:44 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 1alas7-0003HM-Ih for gllmg-musl@m.gmane.org; Thu, 31 Mar 2016 13:34:43 +0200 Original-Received: (qmail 5937 invoked by uid 550); 31 Mar 2016 11:34:40 -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 5878 invoked from network); 31 Mar 2016 11:34:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to; bh=cMEJlZiRarSlIWQXTcYUjAHAL69Kxrhwu4vuz79o9Y4=; b=P3aqWN60BImuQZyqSLlSusgffWN8WPyHlxeQw4fhyYLsOaBNSljzkmZtqvPFngy28J +Tc4d1DHdmC/yosQwUltNLXoA9X2m8+wtH+JSdCxGsuOyJWAyn6dMcXe0a+YjZBhpl2V 16ZSJve97h2N6T73krvJMZz3vKeaNCDy8HNGnmvkd2/9hO9Fx14HjlpIPwEJdmGQqF85 UuV/huCtbYbBlRngaFSbXjSbyQi8ax4B1jleKLNogS0QOKVC+H6c5SvlwTfaU8RksP94 uSdWm1qwURgjwQtc4vy88h40c/CW6uZ+VMO123fv1czzcDOCUpqfyKrN/yGcHEr8J7X+ +phg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to; bh=cMEJlZiRarSlIWQXTcYUjAHAL69Kxrhwu4vuz79o9Y4=; b=J4lc4du0LJ8mXVZHYzhW+Du5nw0YOPDbu4BaVKWpPPoaYp51NNeeVQEa9fOGVMHOqI KlFvXtX0RjVusR7McXBOEJmoQxbqnSFc4KUr4JL8oBJ8rOs07mKd0SYtiZr8yX39Pkf/ 9XzZtmlpxCgy9cT4UdsWvl+UEBM6A2mB7VI5k/N9ROQnX8q1g+79vDG5/N2Nu3svFxnj DyRhTo5ZcXsCZJBZsiMcdwu6Xjw7f22tFH34o+yKXK9NgJ8QDUYPt0cKcAJJlGFAMZL+ bNlNsVBGudQ0lPJHl1Owp6YNblH77JdX0ibkBmEdI7dtVyyNzTjaUUHF4ygS2GSqDIwX PVsA== X-Gm-Message-State: AD7BkJK/ydSPCYJDf6g3mIZSae/nAjbECYMOzTN3OMk157q68KE3qu+Q85uJChiCzJ8nWmiwh4WapEOyWaBFTQ== X-Received: by 10.60.96.74 with SMTP id dq10mr823040oeb.48.1459424062783; Thu, 31 Mar 2016 04:34:22 -0700 (PDT) Original-Sender: masanoriogino@gmail.com X-Google-Sender-Auth: gBqco8Fg3g94yBNJiGDtuQX47n4 Xref: news.gmane.org gmane.linux.lib.musl.general:9790 Archived-At: 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