diff options
author | Zeev Suraski <zeev@php.net> | 1999-06-04 10:45:54 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-06-04 10:45:54 +0000 |
commit | 3cad348509b66828f421d1b843a025b555519a83 (patch) | |
tree | c088457cf498c7b157b4691f670080b8d9d68e95 /ext/mysql/php3_mysql.h | |
parent | a3a60dd4e704189fbdea808805797d5b11b275e7 (diff) | |
download | php-git-3cad348509b66828f421d1b843a025b555519a83.tar.gz |
* Add a new workspace for dynamic PHP extensions.
* Add a few functions to PHP's API.
* Get the MySQL extension up-to-date and thread safe.
* Add a project for building the MySQL extension under Win32.
Diffstat (limited to 'ext/mysql/php3_mysql.h')
-rw-r--r-- | ext/mysql/php3_mysql.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/mysql/php3_mysql.h b/ext/mysql/php3_mysql.h index 2b5e55e985..fc964a1945 100644 --- a/ext/mysql/php3_mysql.h +++ b/ext/mysql/php3_mysql.h @@ -36,6 +36,9 @@ #if COMPILE_DL #undef HAVE_MYSQL #define HAVE_MYSQL 1 +# if WIN32||WINNT +# define PHP_MYSQL_API __declspec(dllexport) +# endif #endif #if HAVE_MYSQL @@ -43,6 +46,10 @@ #define DLEXPORT #endif +#ifdef ZTS +#include "TSRM.h" +#endif + extern php3_module_entry mysql_module_entry; #define mysql_module_ptr &mysql_module_entry @@ -106,7 +113,7 @@ typedef struct { # define MySLS_CC # define MySG(v) (mysql_globals.v) # define MySLS_FETCH() -extern ZEND_API php_mysql_globals mysql_globals; +extern PHP_MYSQL_API php_mysql_globals mysql_globals; #endif |