Project

General

Profile

Bug #3761 ยป export-symbols-for-dll-under-64bits.patch

luislavena (Luis Lavena), 09/24/2010 03:01 AM

View differences:

win32/mkexports.rb
class Exports::Mingw32 < Exports::Cygwin
def each_export(objs)
super
yield "strcasecmp", "_stricmp"
yield "strncasecmp", "_strnicmp"
end
end
class Exports::Mingw64 < 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
    (1-1/1)