]> granicus.if.org Git - php/commitdiff
Fix win32 build.
authorEdin Kadribasic <edink@php.net>
Fri, 10 May 2002 02:39:37 +0000 (02:39 +0000)
committerEdin Kadribasic <edink@php.net>
Fri, 10 May 2002 02:39:37 +0000 (02:39 +0000)
ext/pgsql/php_pgsql.h

index d58fe09ad2e3d776acddf2ad94565d4c52f67bc5..4d0bfd749b86486454e4703ea9683a9ce4e3c7ad 100644 (file)
@@ -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