The attached patch fixes a number of issues related to compiling the
Bruce Momjian <bruce@momjian.us>
The attached patch fixes a number of issues related to compiling the client utilities (libpq.dll and psql.exe) for win32 (missing defines, adjustments to includes, pedantic casting, non-existent functions) per: http://developer.postgresql.org/docs/postgres/install-win32.html. It compiles cleanly under Windows 2000 using Visual Studio .net. Also compiles clean and passes all regression tests (regular and contrib) under Linux. In addition to a review by the usual suspects, it would be very desirable for someone well versed in the peculiarities of win32 to take a look. Joe Conway
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/md5.c | modified | +12 −3 |
| src/bin/psql/command.c | modified | +5 −4 |
| src/bin/psql/common.c | modified | +25 −5 |
| src/bin/psql/copy.c | modified | +3 −1 |
| src/bin/psql/large_obj.c | modified | +2 −2 |
| src/bin/psql/mbprint.c | modified | +2 −2 |
| src/bin/psql/print.c | modified | +4 −4 |
| src/include/pg_config.h.win32 | modified | +6 −0 |
| src/interfaces/libpq/fe-connect.c | modified | +15 −28 |
| src/interfaces/libpq/fe-misc.c | modified | +4 −4 |
| src/interfaces/libpq/fe-print.c | modified | +2 −2 |
| src/interfaces/libpq/libpqdll.def | modified | +4 −1 |
| src/interfaces/libpq/libpq-int.h | modified | +4 −2 |
| src/interfaces/libpq/pqexpbuffer.c | modified | +3 −3 |
| src/interfaces/libpq/win32.h | modified | +1 −1 |
| src/utils/Makefile | modified | +2 −2 |