mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Protect everything which requires <libpq-fe.h> with PHP_PGSQL_PRIVATE
This commit is contained in:
parent
f6a7542f73
commit
a931caf2b2
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user