Bundled exapt and Cygwin
| From: | Melvyn Sopacua | Date: | Wed, 09 Oct 2002 10:55:33 +0000 |
| Subject: | Bundled exapt and Cygwin | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-89280@lists.php.net to get a copy of this message | ||
Hi,
cygwin 1.3.12 (everything upgraded yesterday):
CYGWIN_NT-5.0 WEBMASTER 1.3.12(0.54/3/2) 2002-07-06 02:16 i686 unknown
Small patch needed, for the bundled expat. Otherwise, __imp_ is prepended,
to the symbols and linking fails.
Objections?
Index: ext/xml/expat/expat.h
===================================================================
RCS file: /repository/php4/ext/xml/expat/expat.h,v
retrieving revision 1.3
diff -u -r1.3 expat.h
--- ext/xml/expat/expat.h 27 Sep 2001 00:29:34 -0000 1.3 +++ ext/xml/expat/expat.h 9 Oct 2002 10:51:20 -0000@@ -10,7 +10,7 @@ #include "php_compat.h" #ifndef XMLPARSEAPI -# if defined(__declspec) && !defined(__BEOS__) +# if defined(__declspec) && !defined(__BEOS__) && !defined(__CYGWIN__)
# define XMLPARSEAPI(type) __declspec(dllimport) type __cdecl# else
# define XMLPARSEAPI(type) typeWith kind regards, Melvyn Sopacua <?php include("not_reflecting_employers_views.txt"); ?>