diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-11-07 10:19:22 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-11-07 10:19:22 -0500 |
| commit | 33cb96ba1a84c612491fb5794674a649d1a6a4d6 (patch) | |
| tree | ac919f14dfaa786c6c9f2fbda86f3d572850f5d7 /doc/src | |
| parent | 77517ba59f8d3a9d282c5e826bf19cbe195cd784 (diff) | |
Revert "Provide DLLEXPORT markers for C functions via PG_FUNCTION_INFO_V1 macro."
This reverts commit c8ead2a3974d3eada145a0e18940150039493cc9.
Seems there is no way to do this that doesn't cause MSVC to give
warnings, so let's just go back to the way we've been doing it.
Discussion: <11843.1478358206@sss.pgh.pa.us>
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/xfunc.sgml | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index 6060e618576..de6a466efc5 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -2577,23 +2577,6 @@ concat_text(PG_FUNCTION_ARGS) error messages to this effect. </para> </listitem> - - <listitem> - <para> - To work correctly on Windows, <literal>C</>-language functions need - to be marked with <literal>PGDLLEXPORT</>, unless you use a build - process that marks all global functions that way. In simple cases - this detail will be handled transparently by - the <literal>PG_FUNCTION_INFO_V1</> macro. However, if you write - explicit external declarations (perhaps in header files), be sure - to write them like this: -<programlisting> -extern PGDLLEXPORT Datum funcname(PG_FUNCTION_ARGS); -</programlisting> - or you'll get compiler complaints when building on Windows. (On - other platforms, the <literal>PGDLLEXPORT</> macro does nothing.) - </para> - </listitem> </itemizedlist> </para> </sect2> |
