Tom Lane wrote: > Peter Eisentraut <pete...@gmx.net> writes: > > On 2/15/14, 10:22 AM, Tom Lane wrote: > >> Yes it does; people who fail to remove their manual externs will get > >> Windows-only build failures (or at least warnings; it's not very clear > >> which declaration will win). > > > The manual externs and the automatically provided ones are exactly the > > same. Why would that fail? > > Maybe I'm remembering the wrong patch. I thought what this patch was > intending was to put PGDLLEXPORT into the automatically-provided externs.
This hunk is the essence of this patch: #define PG_FUNCTION_INFO_V1(funcname) \ +Datum funcname(PG_FUNCTION_ARGS); \ extern PGDLLEXPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \ Note that PGDLLEXPORT is already there. This patch is just about additionally providing the prototype. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers