Subject: | Fix linking on MinGW32 |
The following patch fixes a linking error on MinGW32.
(exported functions of pcre.dll don't need to be exported when you build
a Perl extension)
Perl 5.10.0 (build 1000 beta ActiveState)
OS : MSWin32
gcc 3.4.5 (www.mingw.org)
Subject: | pcre.h.patch |
--- ..\..\..\tmp.orig\re-engine-PCRE-0.13\libpcre\pcre.h 2007-07-12 06:28:58.000000000 +0200
+++ pcre.h 2007-12-18 13:26:39.000000000 +0100
@@ -51,14 +51,6 @@
export setting is defined in pcre_internal.h, which includes this file. So we
don't change an existing definition of PCRE_EXP_DECL. */
-#ifndef PCRE_EXP_DECL
-# ifdef _WIN32
-# ifndef PCRE_STATIC
-# define PCRE_EXP_DECL extern __declspec(dllimport)
-# endif
-# endif
-#endif
-
/* By default, we use the standard "extern" declarations. */
#ifndef PCRE_EXP_DECL