summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-02-08 14:00:09 -0700
committerKarl Williamson <public@khwilliamson.com>2013-02-08 14:44:24 -0700
commit2dbb0a307f0954c1222fc47c920f695d0b1db80d (patch)
tree47d19fbbd2db7704c1df59e256ffb4083a9a24f3 /makedef.pl
parent03b6588a53580864a6eb17030d4a277a0231ab41 (diff)
downloadperl-2dbb0a307f0954c1222fc47c920f695d0b1db80d.tar.gz
makedef.pl: Don't export inline fcns
An inline function is static to the file it is defined in. But they can be part of the public API if they are in #included header files and defined in embed.fnc. Normally such functions are written to the export list on platforms that have this, but since they are static, you get a linkage error. This commit suppresses the writing of inline functions
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/makedef.pl b/makedef.pl
index 4376842e43..6c1b8f3c32 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -743,7 +743,7 @@ if ($define{'USE_PERLIO'}) {
foreach (@$embed) {
my ($flags, $retval, $func, @args) = @$_;
next unless $func;
- if ($flags =~ /[AX]/ && $flags !~ /[xm]/ || $flags =~ /b/) {
+ if ($flags =~ /[AX]/ && $flags !~ /[xmi]/ || $flags =~ /b/) {
# public API, so export
# If a function is defined twice, for example before and after