From: Edin Kadribasic Date: Fri, 10 May 2002 02:39:37 +0000 (+0000) Subject: Fix win32 build. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51cb237aa65dc7650d2ac388aa803cf3078cf562;p=php Fix win32 build. --- diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index d58fe09ad2..4d0bfd749b 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -36,6 +36,12 @@ extern zend_module_entry pgsql_module_entry; #ifdef PHP_WIN32 #define INV_WRITE 0x00020000 #define INV_READ 0x00040000 +#undef PHPAPI +#ifdef PGSQL_EXPORTS +#define PHPAPI __declspec(dllexport) +#else +#define PHPAPI __declspec(dllimport) +#endif #else #include #endif