]> granicus.if.org Git - php/commitdiff
Allow pdo to be statically compiled in, while modules remain dynamic
authorEdin Kadribasic <edink@php.net>
Sun, 13 Feb 2005 23:19:00 +0000 (23:19 +0000)
committerEdin Kadribasic <edink@php.net>
Sun, 13 Feb 2005 23:19:00 +0000 (23:19 +0000)
ext/pdo/php_pdo.h

index 57c71374f8762edf54be1a287742a79ce0b07e0f..832c05fb62595fce31228b951c008f3c89873e5b 100755 (executable)
@@ -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)