diff options
author | Tony Cook <tony@develop-help.com> | 2020-03-26 14:19:34 +1100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-03-27 10:13:05 -0600 |
commit | c83b64ee3d2f2626c7c692d434d7e1659b2c05d6 (patch) | |
tree | f331f45ceacdffd7e3a5a6cd0864405a8b07397a | |
parent | 51c9ef5418883d5ebb272093a628d955fe1cc323 (diff) | |
download | perl-c83b64ee3d2f2626c7c692d434d7e1659b2c05d6.tar.gz |
don't export PL_mbrlen_ps, PL_mbrtowc, PL_wcrtomb if not defined
These variables are only defined when the appropriate symbols are
defined in config.h, which are controled by their respective names
in config.sh/%Config.
Note that the earlier code in makedef.pl only defines the intrpvar.h
symbols for non-multiplicity builds, so there's no need to special
case this check for threaded/multiplicity builds where these symbols
are never defined.
A sufficiently modern MSVC CRT does turn out to define these symbols,
but fixing this error first.
-rw-r--r-- | makedef.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/makedef.pl b/makedef.pl index f0805e9059..404f27b5ed 100644 --- a/makedef.pl +++ b/makedef.pl @@ -742,6 +742,18 @@ unless ($define{'USE_QUADMATH'}) { ++$skip{Perl_quadmath_format_single}; } +unless ($Config{d_mbrlen}) { + ++$skip{PL_mbrlen_ps}; +} + +unless ($Config{d_mbrtowc}) { + ++$skip{PL_mbrtowc_ps}; +} + +unless ($Config{d_wcrtomb}) { + ++$skip{PL_wcrtomb_ps}; +} + ############################################################################### # At this point all skip lists should be completed, as we are about to test |