summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-02-06 07:25:51 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-02-06 07:25:51 +0000
commit39ad45326656ea54cfd356bb91de7ff71e332aea (patch)
treeb122337e9f17c32b2bec9cfb6b3e8812899f7943 /ext/pgsql/php_pgsql.h
parentb42f0b0d4377e2147ed7d127eb624de04e93c7d0 (diff)
downloadphp-git-39ad45326656ea54cfd356bb91de7ff71e332aea.tar.gz
Clean up code.
Removed PHP_PGSQL_API macro. Define pgsql_globals_id # Need a little more clean up
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
-rw-r--r--ext/pgsql/php_pgsql.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index dde04e7ba3..03390696c5 100644
--- a/ext/pgsql/php_pgsql.h
+++ b/ext/pgsql/php_pgsql.h
@@ -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