From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10373 Path: news.gmane.org!.POSTED!not-for-mail From: "Zhao, Weiming" Newsgroups: gmane.linux.lib.musl.general Subject: Re: swap two macro tests to avoid warning Date: Thu, 11 Aug 2016 16:13:24 -0700 Message-ID: <8991701f-35d8-0db6-cf8e-602545fdacc4@codeaurora.org> References: <20160811183738.GD15995@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1470957224 9664 195.159.176.226 (11 Aug 2016 23:13:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Aug 2016 23:13:44 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 To: musl@lists.openwall.com Original-X-From: musl-return-10386-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 12 01:13:40 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXzAR-0002N6-Cp for gllmg-musl@m.gmane.org; Fri, 12 Aug 2016 01:13:39 +0200 Original-Received: (qmail 11812 invoked by uid 550); 11 Aug 2016 23:13:37 -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 11794 invoked from network); 11 Aug 2016 23:13:37 -0000 In-Reply-To: <20160811183738.GD15995@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10373 Archived-At: Thanks Rich. You're right. I need to use -isystem. Thanks, Weiming On 8/11/2016 11:37 AM, Rich Felker wrote: > On Thu, Aug 11, 2016 at 10:34:40AM -0700, Zhao, Weiming wrote: >> HI, >> >> When I use MUSL in some C++ project building, I got the warning of >> '__STDC_VERSION__' is not defined > As before, if you're getting warnings from the system headers I think > there's something wrong with how you have musl and/or your toolchain > installed. Can you provide some details on how this is happening? > > Rich -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation