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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to