summaryrefslogtreecommitdiff
path: root/ext/pdo/php_pdo.h
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2005-02-13 23:19:00 +0000
committerEdin Kadribasic <edink@php.net>2005-02-13 23:19:00 +0000
commit14819d0f1445dff2dede8abc189112ace600504f (patch)
tree41d1adfe6918dc5ee4214fff44d6da820e052f55 /ext/pdo/php_pdo.h
parent06cf185298e8dc68206b8966d3beccac81da80a5 (diff)
downloadphp-git-14819d0f1445dff2dede8abc189112ace600504f.tar.gz
Allow pdo to be statically compiled in, while modules remain dynamic
Diffstat (limited to 'ext/pdo/php_pdo.h')
-rwxr-xr-xext/pdo/php_pdo.h2
1 files changed, 1 insertions, 1 deletions
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)