On 26 January 2016 at 23:04, Yury Zhuravlev <u.zhurav...@postgrespro.ru> wrote:
> Hello hackers. > Why we do not use PGDLLEXPORT (__declspec (dllexport)) for the libpq (and > other dlls)? > Now we are using black magic with gendef.pl for get def (aka export.txt) > from .obj files. > I have set for some functions and it works. > Perhaps there is a circumstance that I do not know but my version seems to > me simplify build under Windows. > See http://www.postgresql.org/message-id/1389762012.24046.2.ca...@vanquo.pezone.net and http://www.postgresql.org/message-id/0lix1g-1vpi6o3ros-00d...@mrelayeu.kundenserver.de (sorry for HTML horror) for history. TL;DR: PGDLLEXPORT is considered ugly Windows-droppings in the code and so a less visible, albeit more convoluted, solution is used. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services