allow building privoxy with a statically linked external pcre library on windows
authorLee <ler762@users.sourceforge.net>
Thu, 18 Feb 2021 16:22:38 +0000 (11:22 -0500)
committerLee <ler762@users.sourceforge.net>
Thu, 18 Feb 2021 16:22:38 +0000 (11:22 -0500)
commit665621c888fb22e8c0ee70fc85d3a633a1144c64
treec36de52486969a5d3234d36ca8e10f99faffd8a3
parent4fb0f9b2b3f5804a46f78838edc373e6dda63c49
allow building privoxy with a statically linked external pcre library on windows

see /usr/i686-w64-mingw32/sys-root/mingw/include/pcre.h line 54
  #if defined(_WIN32) && !defined(PCRE_STATIC)
  #  ifndef PCRE_EXP_DECL
  #    define PCRE_EXP_DECL  extern __declspec(dllimport)
  #  endif
If you want to statically link a program against a PCRE library in the form of
a non-dll .a file, you must define PCRE_STATIC before including pcre.h or
pcrecpp.h, otherwise the pcre_malloc() and pcre_free() exported functions will
be declared __declspec(dllimport), with unwanted results.
configure.in