summaryrefslogtreecommitdiff
path: root/win32/mkexports.rb
diff options
context:
space:
mode:
authorwanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-03 15:06:23 +0000
committerwanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-03 15:06:23 +0000
commita21409ff5f3347c3ab79386412d950561d560749 (patch)
tree1f8a5a3b6b132e5e659ba603d636cdfc5b44a099 /win32/mkexports.rb
parent65119c75b0fadd63d330af82b066ff11eb3a6091 (diff)
* tool/config.sub: revert r29320, r29324, r29347, r29354, r29365
to automake-1.11.1. [ruby-core:32634] * win32/mkexports.rb: no longer use 'mingw64'. a patch from Luis Lavena at [ruby-core:32678]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb12
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"