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
151 151

  
152 152
class Exports::Mingw32 < Exports::Cygwin
153 153
  def each_export(objs)
154
    super
155
    yield "strcasecmp", "_stricmp"
156
    yield "strncasecmp", "_strnicmp"
157
  end
158
end
159

  
160
class Exports::Mingw64 < Exports::Cygwin
161
  def each_export(objs)
162 154
    objdump(objs) do |l|
163 155
      next if /@.*@/ =~ l
164 156
      yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_?((?!Init_|.*_threadptr_|DllMain[@\n]).*)$/ =~ l