Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew6HR-0007Io-0e for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 13:17:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ew6HO-0005QI-U5 for pgsql-committers@arkaria.postgresql.org; Wed, 14 Mar 2018 13:17:18 +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 1ew6HO-0005Q8-Lb for pgsql-committers@lists.postgresql.org; Wed, 14 Mar 2018 13:17:18 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ew6HH-000718-3Y for pgsql-committers@postgresql.org; Wed, 14 Mar 2018 13:17:17 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5E9F821171; Wed, 14 Mar 2018 09:17:08 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 14 Mar 2018 09:17:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=tfOG+/ RcV+sJ4F/vjipOKMu76JB7XsTPwpIIwyT1ttw=; b=SW8WPXp7v0n3sNIGVMY6in 35SC7k64LT47O4VEUU5rsuvvboK7YOlm4YUPKVmvxPKWWrEibFnqrAozp+79Qb3G Z5Bqk9BrIu2LWLH+UOIVg/Y2Z5Lvzfx3ZXKhqcjs/3PZ5oz30TZWxtbD0v+cAIkd 57k4WVdHnkKO0DgNvd29iF3OtVVK95rrmiBgDkBxEn1aWp/I3ICgRGCMPSB18h82 od6c7iyQHnHF44Rs9iG0O9RSbfBaIkJ+bQsxVlfKDW2NGuWjyS9BydKB3ruNBdf9 +n5QZpUkZs6wWG3BArsZchFElyWgHZAA9j+9qP9TYRoYXc2CtKkXVtVgefUO9vYQ == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id E67B9242CD; Wed, 14 Mar 2018 09:17:07 -0400 (EDT) Subject: Re: pgsql: Move strtoint() to common To: David Rowley , Tom Lane References: <29889.1520968202@sss.pgh.pa.us> Cc: pgsql-committers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4ca0838e-9cd3-bfae-b6b8-51ba0eabcabe@2ndquadrant.com> Date: Wed, 14 Mar 2018 09:17:07 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/13/18 21:10, David Rowley wrote: > On 14 March 2018 at 08:10, Tom Lane wrote: >> Peter Eisentraut writes: >>> Move strtoint() to common >> >> Buildfarm seems to think this isn't quite baked for Windows. > > Yeah, "restrict" seems to be C99, and the Microsoft compilers don't > quite know about that yet. The attached compiles fine for me on a > windows machine. We have a configure test for it and we already use it elsewhere. Is it not working? I think the problem is rather that we somehow need to tell it to link src/common/string.c into pgtypeslib. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services