Re: narwhal and PGDLLIMPORT
Andres Freund <andres@2ndquadrant.com>
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Craig Ringer <craig@2ndquadrant.com>,
Ashesh Vashi <ashesh.vashi@enterprisedb.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2014-02-03T14:34:02Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
MinGW: Link with shell32.dll instead of shfolder.dll.
- 53566fc0940c 9.5.0 cited
-
Centralize getopt-related declarations in a new header file pg_getopt.h.
- 60ff2fdd9970 9.4.0 cited
-
Get rid of use of dlltool in Mingw builds.
- 846e91e0223c 9.4.0 cited
-
Export a few more symbols required for test_shm_mq module.
- 7d7eee8bb702 9.4.0 cited
-
Export set_latch_on_sigusr1 symbol for Windows.
- 708c529c7fde 9.4.0 cited
-
Use SHGetFolderPath instead of SHGetSpecialFolderPath to find the
- 889f03812916 8.1.0 cited
On 2014-02-03 09:25:57 -0500, Tom Lane wrote: > Andres Freund <andres@2ndquadrant.com> writes: > > What about the completely crazy thing of simply redefining export to > > include the declspec on windows for backend build? That will possibly > > blow up the size of the .def files et al a bit, but I have little mercy > > with that. > > You mean "#define extern extern PGDLLIMPORT" ? What will that do to > function declarations that have "extern"? As far as I understand it's perfectly ok to have that on functions. http://msdn.microsoft.com/en-us/library/aa271769%28v=vs.60%29.aspx even claims it's faster in some scenarios. > Are we sure C compilers > are smart enough to not go into an infinite loop on such a macro? I'd be really surprised if there were any that wouldn't completely choke on pg otherwise. Especially not as we are only talking about windows where only gcc and msvc is supported these days. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services