summaryrefslogtreecommitdiff
path: root/pcreposix.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-06-07 16:39:32 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-06-07 16:39:32 +0000
commit137c7498e14a009c6603ff09e4843cddc4c54e83 (patch)
tree2dacff9d2ef2005aa9fb5e8ae2b9e3e566da93ed /pcreposix.c
parentc8b8f5074c8e0f3ccf5621bf55a5b13b8c32043f (diff)
downloadpcre-137c7498e14a009c6603ff09e4843cddc4c54e83.tar.gz
Reverse pcreposix.c #include patch; doesn't work on Windows.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@536 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r--pcreposix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pcreposix.c b/pcreposix.c
index d012f0f..090e6c8 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -57,6 +57,12 @@ previously been set. */
# define PCREPOSIX_EXP_DEFN __declspec(dllexport)
#endif
+/* We include pcre.h before pcre_internal.h so that the PCRE library functions
+are declared as "import" for Windows by defining PCRE_EXP_DECL as "import".
+This is needed even though pcre_internal.h itself includes pcre.h, because it
+does so after it has set PCRE_EXP_DECL to "export" if it is not already set. */
+
+#include "pcre.h"
#include "pcre_internal.h"
#include "pcreposix.h"