diff options
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/mkexports.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 06f8c8ddbb..9b450519ce 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -111,7 +111,8 @@ class Exports::Mswin < Exports next unless l.sub!(/.*?\s(\(\)\s+)?External\s+\|\s+/, '') is_data = !$1 if noprefix or /^[@_]/ =~ l - next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l || /^_DllMain@/ =~ l + next if /(?!^)@.*@/ =~ l || /@[[:xdigit:]]{8,16}$/ =~ l || + /^_(?:Init_|.*_threadptr_|DllMain@)/ =~ l l.sub!(/^[@_]/, '') if /@\d+$/ !~ l elsif !l.sub!(/^(\S+) \([^@?\`\']*\)$/, '\1') next |