diff options
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/mkexports.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 86ba979ddf..1317f1b601 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -149,19 +149,11 @@ class Exports::Cygwin < Exports end end -class Exports::Mingw32 < Exports::Cygwin - def each_export(objs) - super - yield "strcasecmp", "_stricmp" - yield "strncasecmp", "_strnicmp" - end -end - -class Exports::Mingw64 < Exports::Cygwin +class Exports::Mingw < Exports::Cygwin def each_export(objs) objdump(objs) do |l| next if /@.*@/ =~ l - yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_?((?!Init_|.*_threadptr_|DllMain[@\n]).*)$/ =~ l + yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_?((?!_?Init_|_?.*_threadptr_|_?DllMain[@\n]).*)$/ =~ l end yield "strcasecmp", "_stricmp" yield "strncasecmp", "_strnicmp" |