diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-06-07 16:39:32 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-06-07 16:39:32 +0000 |
commit | 137c7498e14a009c6603ff09e4843cddc4c54e83 (patch) | |
tree | 2dacff9d2ef2005aa9fb5e8ae2b9e3e566da93ed /pcreposix.c | |
parent | c8b8f5074c8e0f3ccf5621bf55a5b13b8c32043f (diff) | |
download | pcre-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.c | 6 |
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" |