cvs: /php4/ext/pgsql pgsql.c php_pgsql.h
| From: | Sascha Schumann | Date: | Tue, 02 May 2000 05:27:36 +0000 |
| Subject: | cvs: /php4/ext/pgsql pgsql.c php_pgsql.h | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14329@lists.php.net to get a copy of this message | ||
sas Mon May 1 22:27:36 2000 EDT
Modified files:
/php4/ext/pgsql pgsql.c php_pgsql.h
Log:
Protect everything which requires <libpq-fe.h> with PHP_PGSQL_PRIVATE
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.44 php4/ext/pgsql/pgsql.c:1.45
--- php4/ext/pgsql/pgsql.c:1.44 Mon May 1 17:44:25 2000
+++ php4/ext/pgsql/pgsql.c Mon May 1 22:27:35 2000
@@ -17,13 +17,15 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.44 2000/05/02 00:44:25 sas Exp $ */
+/* $Id: pgsql.c,v 1.45 2000/05/02 05:27:35 sas Exp $ */
#include <stdlib.h>
#if defined(COMPILE_DL) || defined(COMPILE_DL_PGSQL)
#include "dl/phpdl.h"
#endif
+
+#define PHP_PGSQL_PRIVATE 1
#include "php.h"
#include "php_ini.h"
Index: php4/ext/pgsql/php_pgsql.h
diff -u php4/ext/pgsql/php_pgsql.h:1.7 php4/ext/pgsql/php_pgsql.h:1.8
--- php4/ext/pgsql/php_pgsql.h:1.7 Sat Feb 12 06:38:31 2000
+++ php4/ext/pgsql/php_pgsql.h Mon May 1 22:27:35 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pgsql.h,v 1.7 2000/02/12 14:38:31 sas Exp $ */
+/* $Id: php_pgsql.h,v 1.8 2000/05/02 05:27:35 sas Exp $ */
#ifndef _PHP_PGSQL_H
#define _PHP_PGSQL_H
@@ -42,6 +42,7 @@
extern zend_module_entry pgsql_module_entry;
#define pgsql_module_ptr &pgsql_module_entry
+#ifdef PHP_PGSQL_PRIVATE
#include <libpq-fe.h>
@@ -137,6 +138,7 @@
# define PGG(v) (pgsql_globals.v)
# define PGLS_FETCH()
extern PHP_PGSQL_API php_pgsql_globals pgsql_globals;
+#endif
#endif
#else