From: Andrey Hristov Date: Tue, 25 May 2010 21:54:21 +0000 (+0000) Subject: Fix shared build X-Git-Tag: php-5.3.3RC1~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=348880ce668799fb010fdb17e2a51dd59c0b8c27;p=php Fix shared build --- diff --git a/ext/mysqlnd/mysqlnd_debug.c b/ext/mysqlnd/mysqlnd_debug.c index 0b8a359726..232104a89b 100644 --- a/ext/mysqlnd/mysqlnd_debug.c +++ b/ext/mysqlnd/mysqlnd_debug.c @@ -1210,7 +1210,7 @@ static char * mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persist #define MYSQLND_DEBUG_MEMORY 1 -struct st_mysqlnd_allocator_methods mysqlnd_allocator = +PHPAPI struct st_mysqlnd_allocator_methods mysqlnd_allocator = { #if MYSQLND_DEBUG_MEMORY _mysqlnd_emalloc, diff --git a/ext/mysqlnd/mysqlnd_debug.h b/ext/mysqlnd/mysqlnd_debug.h index 8fc74568ea..2c935d02e6 100644 --- a/ext/mysqlnd/mysqlnd_debug.h +++ b/ext/mysqlnd/mysqlnd_debug.h @@ -131,7 +131,7 @@ struct st_mysqlnd_allocator_methods char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D); }; -extern struct st_mysqlnd_allocator_methods mysqlnd_allocator; +PHPAPI extern struct st_mysqlnd_allocator_methods mysqlnd_allocator; PHPAPI void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D);