]> granicus.if.org Git - php/commitdiff
Protect everything which requires <libpq-fe.h> with PHP_PGSQL_PRIVATE
authorSascha Schumann <sas@php.net>
Tue, 2 May 2000 05:27:35 +0000 (05:27 +0000)
committerSascha Schumann <sas@php.net>
Tue, 2 May 2000 05:27:35 +0000 (05:27 +0000)
ext/pgsql/pgsql.c
ext/pgsql/php_pgsql.h

index cdad76e80ecf9175063b1a3d8cbde588cf29f583..8703edaba9cc5fd8947abe5e25c049ac2a4b20c8 100644 (file)
@@ -25,6 +25,8 @@
 #include "dl/phpdl.h"
 #endif
 
+#define PHP_PGSQL_PRIVATE 1
+
 #include "php.h"
 #include "php_ini.h"
 #include "ext/standard/php_standard.h"
index 0486801fe5ce3ef08168469d7e85dc61c7dea6e8..f0ec320aed734d756ffff9b8af353529ccfa8b11 100644 (file)
@@ -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>
 
@@ -138,6 +139,7 @@ typedef struct {
 # define PGLS_FETCH()
 extern PHP_PGSQL_API php_pgsql_globals pgsql_globals;
 #endif
+#endif
 
 #else