From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?Hans_=C3=85berg?= Newsgroups: gmane.lisp.guile.devel Subject: Re: c99 support Date: Fri, 29 Jun 2018 17:55:52 +0200 Message-ID: <64F03231-8BEC-4611-83F3-687A40C71F02@telia.com> References: <8736xd45zc.fsf@pobox.com> <877emi2g9q.fsf@pobox.com> <7E46C070-8ABF-430E-8ACD-6FDE07AD84AF@telia.com> <20180629111027.4f60d93515b457653e24f2bb@gmail.com> <20180629163549.ee530b4c3738f36e85a3a5e3@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530288932 10167 195.159.176.226 (29 Jun 2018 16:15:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2018 16:15:32 +0000 (UTC) Cc: guile-devel@gnu.org To: Chris Vine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jun 29 18:15:28 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYw3P-0002Ut-S7 for guile-devel@m.gmane.org; Fri, 29 Jun 2018 18:15:23 +0200 Original-Received: from localhost ([::1]:43331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYw5X-0005rh-AM for guile-devel@m.gmane.org; Fri, 29 Jun 2018 12:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYvkc-0007wX-T2 for guile-devel@gnu.org; Fri, 29 Jun 2018 11:56:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYvkZ-0002Wj-Rw for guile-devel@gnu.org; Fri, 29 Jun 2018 11:55:58 -0400 Original-Received: from v-smtpout2.han.skanova.net ([81.236.60.155]:41162) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fYvkZ-0002TJ-KA for guile-devel@gnu.org; Fri, 29 Jun 2018 11:55:55 -0400 Original-Received: from [10.0.1.4] ([90.227.203.185]) by cmsmtp with ESMTPA id YvkWfiq16UtqsYvkWf6TdQ; Fri, 29 Jun 2018 17:55:53 +0200 In-Reply-To: <20180629163549.ee530b4c3738f36e85a3a5e3@gmail.com> X-Mailer: Apple Mail (2.3445.8.2) X-CMAE-Envelope: MS4wfF6aNPWHHDnB1GaN9wtfWv4ZyxThTe5BRFK0hDPStrqVQHd+wh93m4EGQeSia1BBwZgpPO3jGw5Os+K0exRCMN0f+UQgumiYnmdsrIzHKNTJUdxt0Rml pINUWjpLyYs5Nd76H22WJHHmiVLHdkHDbvIl7UJSBNqHf6kOHuctGo9HIKpSPSdrQ1+Ylikn8HMukregH+5ruEsPb904Wxti8ZA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 81.236.60.155 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19569 Archived-At: > On 29 Jun 2018, at 17:35, Chris Vine wrote: >=20 > On Fri, 29 Jun 2018 12:34:07 +0200 > Hans =C3=85berg wrote: >>> If, say, uint8_t is available in stdint.h for C, it >>> will be available for C++. =C2=A721.4.1/2 of C++17 makes this even = more >>> explicit: "The [cstdint] header defines all types and macros the >>> same as the C standard library header ". >>=20 >> Which C version? In g++7, __STDC_VERSION__ is not defined, only = __STDC__. >=20 > In C++17, references to "C" are to ISO/IEC 9899:2011. References to = the > C standard library are to "the library described in Clause 7 of = ISO/IEC > 9899:2011". In C++11 and C++14, the references are to ISO/IEC > 9899:1999. =20 Good. > By default (if you don't use the -std=3Dc++xx flag) g++-7 > compiles according to C++14. I am using C++17. And gcc7 defaults to C11, so there is an = incompatibility with the default g++ C version it seems.