summaryrefslogtreecommitdiff
path: root/win32/mkexports.rb
diff options
context:
space:
mode:
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index 214e4c6772..587081007f 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -8,7 +8,7 @@ objs = ARGV.collect {|s| s.tr('/', '\\')}
IO.foreach("|dumpbin -symbols " + objs.join(' ')) do |l|
next if /^[0-9A-F]+ 0+ UNDEF / =~ l
next unless l.sub!(/.*\sExternal\s+\|\s+/, '')
- if l.sub!(/^_/, '')
+ if l.sub!(/^_(?!\w+@\d+$)/, '')
next if /@.*@/ =~ l || /@[0-9a-f]{16}$/ =~ l
elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1')
next