From 679036d6688139137b77ae7870a18bccf5d9f503 Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Sun, 3 Oct 2010 04:25:16 -0300 Subject: [PATCH 2/2] Unify mkexport symbols for 32/64 MinGW --- win32/mkexports.rb | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 86ba979..1317f1b 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" -- 1.7.1.msysgit.0