From 39ad45326656ea54cfd356bb91de7ff71e332aea Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Wed, 6 Feb 2002 07:25:51 +0000 Subject: Clean up code. Removed PHP_PGSQL_API macro. Define pgsql_globals_id # Need a little more clean up --- ext/pgsql/php_pgsql.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'ext/pgsql/php_pgsql.h') 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 #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 -- cgit v1.2.1