summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2002-05-10 02:39:37 +0000
committerEdin Kadribasic <edink@php.net>2002-05-10 02:39:37 +0000
commit51cb237aa65dc7650d2ac388aa803cf3078cf562 (patch)
tree8db40c8c28b0222ac895998d80052aec72179398
parent034685f25843cd31619becc34f6d3d0f067c2747 (diff)
downloadphp-git-51cb237aa65dc7650d2ac388aa803cf3078cf562.tar.gz
Fix win32 build.
-rw-r--r--ext/pgsql/php_pgsql.h6
1 files changed, 6 insertions, 0 deletions
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 <libpq/libpq-fs.h>
#endif