diff options
author | Noah Misch | 2017-11-24 04:22:04 +0000 |
---|---|---|
committer | Noah Misch | 2017-11-24 04:22:04 +0000 |
commit | 84c4313c6f6a3f67ccc2296e5a7674dee1979e7a (patch) | |
tree | cdaccce7a9bde63c08f5026183a7b7cba0514475 /src/pl/plperl/plperl.h | |
parent | 59b71c6fe6ca89566f40439bcdff94a2f5b39a92 (diff) |
Support linking with MinGW-built Perl.
This is necessary for ActivePerl 5.18 onwards and for Strawberry Perl.
It is not sufficient for 32-bit builds with newer Visual Studio; these
fail with error LINK2026. Back-patch to 9.3 (all supported versions).
Reported by Victor Wagner.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/pl/plperl/plperl.h')
-rw-r--r-- | src/pl/plperl/plperl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pl/plperl/plperl.h b/src/pl/plperl/plperl.h index c4e06d089f4..aac95f8d2ce 100644 --- a/src/pl/plperl/plperl.h +++ b/src/pl/plperl/plperl.h @@ -42,6 +42,14 @@ #undef vsnprintf #endif +/* + * ActivePerl 5.18 and later are MinGW-built, and their headers use GCC's + * __inline__. Translate to something MSVC recognizes. + */ +#ifdef _MSC_VER +#define __inline__ inline +#endif + /* * Get the basic Perl API. We use PERL_NO_GET_CONTEXT mode so that our code |