mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Clean up code.
Removed PHP_PGSQL_API macro. Define pgsql_globals_id # Need a little more clean up
This commit is contained in:
parent
b42f0b0d43
commit
39ad453266
2 changed files with 5 additions and 10 deletions
|
@ -38,12 +38,6 @@ extern zend_module_entry pgsql_module_entry;
|
|||
#include <libpq/libpq-fs.h>
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define PHP_PGSQL_API __declspec(dllexport)
|
||||
#else
|
||||
#define PHP_PGSQL_API
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT
|
||||
const char * pg_encoding_to_char(int encoding);
|
||||
#endif
|
||||
|
@ -158,9 +152,10 @@ typedef struct {
|
|||
|
||||
#ifdef ZTS
|
||||
# define PGG(v) TSRMG(pgsql_globals_id, php_pgsql_globals *, v)
|
||||
extern int pgsql_globals_id;
|
||||
#else
|
||||
# define PGG(v) (pgsql_globals.v)
|
||||
extern PHP_PGSQL_API php_pgsql_globals pgsql_globals;
|
||||
extern php_pgsql_globals pgsql_globals;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue