--- code/trunk/pcreposix.c 2007/07/31 11:11:23 198 +++ code/trunk/pcreposix.c 2007/07/31 14:39:09 199 @@ -42,9 +42,23 @@ functions. */ +#ifdef HAVE_CONFIG_H +#include +#endif + + +/* Ensure that the PCREPOSIX_EXP_xxx macros are set appropriately for +compiling these functions. This must come before including pcreposix.h, where +they are set for an application (using these functions) if they have not +previously been set. */ + +#if defined(_WIN32) && !defined(PCRE_STATIC) +# define PCREPOSIX_EXP_DECL extern __declspec(dllexport) +# define PCREPOSIX_EXP_DEFN __declspec(dllexport) +#endif + #include "pcre_internal.h" #include "pcreposix.h" -#include "stdlib.h"