Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buR3p-0007L9-OP for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 21:27:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buR3p-0003mg-57 for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 21:27:37 +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.84_2) (envelope-from ) id 1buR3o-0003mZ-F3 for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 21:27:36 +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.84_2) (envelope-from ) id 1buR3l-0000EW-P6 for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 21:27:35 +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 u9CLRVKG001818; Wed, 12 Oct 2016 17:27:31 -0400 From: Tom Lane To: Albe Laurenz cc: "pgsql-hackers@postgreSQL.org" Subject: Re: Add PGDLLEXPORT to PG_FUNCTION_INFO_V1 In-reply-to: <31374.1476290849@sss.pgh.pa.us> References: <5586.1476276329@sss.pgh.pa.us> <8027.1476279261@sss.pgh.pa.us> <10909.1476282370@sss.pgh.pa.us> <31374.1476290849@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 12 Oct 2016 12:47:29 -0400" Date: Wed, 12 Oct 2016 17:27:31 -0400 Message-ID: <1817.1476307651@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Albe Laurenz writes: >> Tom Lane wrote: >>> I'm okay with adding PGDLLEXPORT to the extern, but we should update >>> that comment to note that it's not necessary with any of our standard >>> Windows build processes. (For that matter, the comment fails to explain >>> why this macro is providing an extern for the base function at all...) >> Here is a patch for that, including an attempt to improve the comment. > Pushed with some further twiddling of the comment. Well, the buildfarm doesn't like that even a little bit. It seems that the MSVC compiler does not like seeing both "extern Datum foo(...)" and "extern PGDLLEXPORT Datum foo(...)", so anything that had an extern in a .h file is failing. There is also quite a bit of phase-of-the-moon behavior in here, because in some cases some functions are raising errors and others that look entirely the same are not. We could plaster all those declarations with PGDLLEXPORT, but I'm rather considerably tempted to go back to the way things were, instead. I do not like patches that end up with Microsoft-droppings everywhere. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers