]> granicus.if.org Git - postgresql/commitdiff
Use snprintf from libpgport in ecpg compatlib. Required since
authorMagnus Hagander <magnus@hagander.net>
Wed, 3 Oct 2007 12:34:29 +0000 (12:34 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 3 Oct 2007 12:34:29 +0000 (12:34 +0000)
we restricted exports from ecpglib.

src/interfaces/ecpg/compatlib/informix.c
src/tools/msvc/Mkvcbuild.pm

index b1f78aebafeba881453128cd1a16e32b11bc106c..807277efa3f80a1c32dde0d54355385152d4123f 100644 (file)
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.50 2007/10/03 11:11:11 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.51 2007/10/03 12:34:29 mha Exp $ */
 
 #include <stdlib.h>
 #include <string.h>
@@ -8,6 +8,7 @@
 #include <limits.h>
 
 #define POSTGRES_ECPG_INTERNAL
+#include <postgres_fe.h>
 #include <ecpgtype.h>
 #include <ecpg_informix.h>
 #include <pgtypes_error.h>
index 9cd0e1f5c5099c9eb8140293db9e59f980af4087..6cabc8c41b9c3177e687bbc91fc3e9f56339da94 100644 (file)
@@ -3,7 +3,7 @@ package Mkvcbuild;
 #
 # Package that generates build files for msvc build
 #
-# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.19 2007/10/03 12:11:00 mha Exp $
+# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.20 2007/10/03 12:34:29 mha Exp $
 #
 use Carp;
 use Win32;
@@ -152,7 +152,7 @@ sub mkvcbuild
       $solution->AddProject('libecpg_compat','dll','interfaces','src\interfaces\ecpg\compatlib');
     $libecpgcompat->AddIncludeDir('src\interfaces\ecpg\include');
     $libecpgcompat->AddIncludeDir('src\interfaces\libpq');
-    $libecpgcompat->AddReference($pgtypes,$libecpg);
+    $libecpgcompat->AddReference($pgtypes,$libecpg,$libpgport);
 
     my $ecpg = $solution->AddProject('ecpg','exe','interfaces','src\interfaces\ecpg\preproc');
     $ecpg->AddIncludeDir('src\interfaces\ecpg\include');