mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 10:21:15 +02:00
16a4a3d59c
For historical reasons, libpq used a separate libpq.rc file for the Windows builds while all other components use a common file win32ver.rc. With a bit of tweaking, the libpq build can also use the win32ver.rc file. This removes a bit of duplicative code. Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/ad505e61-a923-e114-9f38-9867d161073f@2ndquadrant.com |
||
---|---|---|
.. | ||
exports.txt | ||
Makefile | ||
MSG00001.bin | ||
pgevent.c | ||
pgevent.def | ||
pgmsgevent.h | ||
pgmsgevent.mc | ||
pgmsgevent.rc | ||
README |
src/bin/pgevent/README pgevent ======= MSG00001.bin is a binary file, result of Microsoft MC compiler. MC compiler can be downloaded for free with MS Core SDK but it is not included with MSYS tools and I didn't find an alternative way to compile MC file. To summarize: the command "MC pgmsgevent.mc" generates pgmsgevent.h, pgmsgevent.rc, and MSG00001.bin files. In MC file, we declare a string with %s format, so we can write anything we want in the future without needing to change the definition of this string. To finish, because DllUnregisterServer and DllRegisterServer are system defined entry points, we need to export these two functions with their names without "decoration", so we cannot use auto generated .def files without handy modifications. Laurent Ballester