From a0bf2503ea0d9a1a2208dd3cf74727bcda7e69d2 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 3 Oct 2002 17:09:42 +0000 Subject: 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 --- src/interfaces/libpq/fe-print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interfaces/libpq/fe-print.c') diff --git a/src/interfaces/libpq/fe-print.c b/src/interfaces/libpq/fe-print.c index baa9700934c..2dfdc5641c1 100644 --- a/src/interfaces/libpq/fe-print.c +++ b/src/interfaces/libpq/fe-print.c @@ -10,7 +10,7 @@ * didn't really belong there. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.46 2002/08/29 07:22:30 ishii Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.47 2002/10/03 17:09:42 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -299,7 +299,7 @@ PQprint(FILE *fout, (PQntuples(res) == 1) ? "" : "s"); free(fieldMax); free(fieldNotNum); - free(fieldNames); + free((void *) fieldNames); if (usePipe) { #ifdef WIN32 -- cgit v1.2.3