On Thu, May 8, 2014 at 12:19 AM, Craig Ringer <cr...@2ndquadrant.com> wrote:
> In terms of ugliness, would you be happier using a pg_extern instead of
> extern, where we:
> #ifdef WIN32
> #define pg_extern extern PGDLLIMPORT
> #define pg_extern extern
I personally would not be happier with that. extern can be applied to
function prototypes, not just variables, and even to function
definitions. When I see PGDLLIMPORT, I think, oh look, this is some
kind of magic pixie dust that Windows requires us to sprinkle on our
variables. When I see pg_extern, I think, oh, this is the PostgreSQL
version of extern, and it's not, really.
But I can live with it if it makes other people sufficiently happier.
One way or another, I really do feel very strongly that we should push
forward with broader PGDLLIMPORT-ification. My experience mirrors
Craig's: this is a very useful thing for extension developers.
The Enterprise PostgreSQL Company
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: