Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fq4mm-0002z7-QX for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Aug 2018 23:01:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fq4mk-0007vH-HV for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Aug 2018 23:01:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fq4mk-0007vA-6a for pgsql-hackers@lists.postgresql.org; Wed, 15 Aug 2018 23:01:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fq4md-0002cM-6o for pgsql-hackers@lists.postgresql.org; Wed, 15 Aug 2018 23:01:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7FN0o4K017313; Wed, 15 Aug 2018 19:00:50 -0400 From: Tom Lane To: Thomas Munro cc: Andres Freund , David Steele , PostgreSQL Hackers Subject: Re: C99 compliance for src/port/snprintf.c In-reply-to: References: <11138.1534349838@sss.pgh.pa.us> <20825.1534360737@sss.pgh.pa.us> <2069.1534363063@sss.pgh.pa.us> <20180815214931.vlwsz4s55enbppna@alap3.anarazel.de> <9877.1534371239@sss.pgh.pa.us> <20180815222401.kxsupl5zie2jgi4x@alap3.anarazel.de> <10675.1534372270@sss.pgh.pa.us> <20180815224026.a7oe4h72k6z5kvbo@alap3.anarazel.de> Comments: In-reply-to Thomas Munro message dated "Thu, 16 Aug 2018 10:54:01 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17311.1534374050.1@sss.pgh.pa.us> Date: Wed, 15 Aug 2018 19:00:50 -0400 Message-ID: <17312.1534374050@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > Really? I am not an MSVC user but I had the impression that their C > mode (/TC or files named .c) was stuck on C89/C90 as a matter of > policy, as Herb Sutter explained here (though maybe the situation has > changed since then): > https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-and-c99/ Hm, I read that and what it says is that they don't plan to support C99 features that aren't also in C++. But this one surely is. How you turn it on (without enabling all of C++) is not very clear though. regards, tom lane