From 3cad348509b66828f421d1b843a025b555519a83 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Fri, 4 Jun 1999 10:45:54 +0000 Subject: * 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. --- ext/mysql/php3_mysql.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ext/mysql/php3_mysql.h') 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 -- cgit v1.2.1