From: Edin Kadribasic Date: Sun, 13 Feb 2005 23:19:00 +0000 (+0000) Subject: Allow pdo to be statically compiled in, while modules remain dynamic X-Git-Tag: RELEASE_0_2_4~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14819d0f1445dff2dede8abc189112ace600504f;p=php Allow pdo to be statically compiled in, while modules remain dynamic --- diff --git a/ext/pdo/php_pdo.h b/ext/pdo/php_pdo.h index 57c71374f8..832c05fb62 100755 --- a/ext/pdo/php_pdo.h +++ b/ext/pdo/php_pdo.h @@ -27,7 +27,7 @@ extern zend_module_entry pdo_module_entry; #define phpext_pdo_ptr &pdo_module_entry #ifdef PHP_WIN32 -# ifdef PDO_EXPORTS +# if defined(PDO_EXPORTS) || (defined(PHP_EXPORTS) && !defined(COMPILE_DL_PDO)) # define PDO_API __declspec(dllexport) # elif defined(COMPILE_DL_PDO) # define PDO_API __declspec(dllimport)