Re: Re: pgsql win32 build
| From: | Edin Kadribasic | Date: | Fri, 10 May 2002 01:52:27 +0000 |
| Subject: | Re: Re: pgsql win32 build | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83860@lists.php.net to get a copy of this message | ||
One compile problem solved (I'll commit it shortly), another appears:
c:\php4build\HEAD\ext\pgsql\pgsql.c(1505) : fatal error C1057: unexpected
end of file in macro expansion
The following patch solves PHPAPI problem:
Index: php_pgsql.h
===================================================================
RCS file: /repository/php4/ext/pgsql/php_pgsql.h,v
retrieving revision 1.45
diff -u -3 -p -r1.45 php_pgsql.h
--- php_pgsql.h 25 Apr 2002 01:42:23 -0000 1.45
+++ php_pgsql.h 10 May 2002 01:47:06 -0000
@@ -36,6 +36,12 @@ extern zend_module_entry pgsql_module_en
#ifdef PHP_WIN32
#define INV_WRITE 0x00020000
#define INV_READ 0x00040000
+#undef PHPAPI
+#ifdef PHP_EXPORTS
+#define PHPAPI __declspec(dllexport)
+#else
+#define PHPAPI __declspec(dllimport)
+#endif
#else
#include <libpq/libpq-fs.h>
#endif