From f5c49771df54bfa489079c9655e17753d271a2fe Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Fri, 25 Jul 2003 11:27:39 +0000 Subject: [PATCH] Export symbols needed for shared extensions. --- ext/xml/expat/xmlparse.c | 2 +- main/php_compat.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ext/xml/expat/xmlparse.c b/ext/xml/expat/xmlparse.c index 8ccc6cd188..f2de183346 100644 --- a/ext/xml/expat/xmlparse.c +++ b/ext/xml/expat/xmlparse.c @@ -9,7 +9,7 @@ #ifdef COMPILED_FROM_DSP #include "winconfig.h" -#define XMLPARSEAPI(type) type __cdecl +#define XMLPARSEAPI(type) __declspec(dllexport) type __cdecl #include "expat.h" #undef XMLPARSEAPI diff --git a/main/php_compat.h b/main/php_compat.h index 4844b2a772..5a415d873d 100644 --- a/main/php_compat.h +++ b/main/php_compat.h @@ -97,4 +97,9 @@ #define XmlUtf8Encode php_XmlUtf8Encode #endif +#ifdef PHP_EXPORTS +#define PCRE_STATIC +#define XML_STATIC +#endif + #endif -- 2.50.1