]> granicus.if.org Git - postgresql/commit
Provide DLLEXPORT markers for C functions via PG_FUNCTION_INFO_V1 macro.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Oct 2016 16:45:50 +0000 (12:45 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 12 Oct 2016 16:46:02 +0000 (12:46 -0400)
commitc4a2ffefbf74bae049c95339fb733955d2b12c55
treece08432ba27194e1e86af81254cebe90256cd4b6
parent3ccc15312b23fe283c7b63b3109229c16166745e
Provide DLLEXPORT markers for C functions via PG_FUNCTION_INFO_V1 macro.

This isn't really necessary for our own code, because we use a .DEF file
in MSVC builds (see gendef.pl), or --export-all-symbols in MinGW and
Cygwin builds, to ensure that all global symbols in loadable modules
will be exported on Windows.  However, third-party authors might use
different build processes that need this marker, and it's harmless
enough for our own builds.

To some extent, this is an oversight in commit e7128e8db, so back-patch
to 9.4 where that was added.

Laurenz Albe

Discussion: <A737B7A37273E048B164557ADEF4A58B539300BD@ntex2010a.host.magwien.gv.at>
src/include/fmgr.h