diff options
Diffstat (limited to 'ext/pdo_firebird/php_pdo_firebird.h')
| -rw-r--r-- | ext/pdo_firebird/php_pdo_firebird.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/pdo_firebird/php_pdo_firebird.h b/ext/pdo_firebird/php_pdo_firebird.h index 9eb913dd59..83b2e9304a 100644 --- a/ext/pdo_firebird/php_pdo_firebird.h +++ b/ext/pdo_firebird/php_pdo_firebird.h @@ -25,9 +25,15 @@ extern zend_module_entry pdo_firebird_module_entry; #define phpext_pdo_firebird_ptr &pdo_firebird_module_entry #ifdef PHP_WIN32 -#define PHP_PDO_FB_API __declspec(dllexport) +# ifdef PDO_FIREBIRD_EXPORTS +# define PDO_FB_API __declspec(dllexport) +# elif defined(COMPILE_DL_PDO_FIREBIRD) +# define PDO_FB_API __declspec(dllimport) +# else +# define PDO_FB_API +# endif #else -#define PHP_PDO_FB_API +# define PDO_FB_API #endif #ifdef ZTS |
