src/loadso/macosx/SDL_dlcompat.c
changeset 3011 8f4ed5ec2b06
parent 2859 99210400e8b9
child 3013 8cc00819c8d6
equal deleted inserted replaced
3010:a6694a812119 3011:8f4ed5ec2b06
   614              n++, lc = (struct load_command *) ((char *) lc + lc->cmdsize)) {
   614              n++, lc = (struct load_command *) ((char *) lc + lc->cmdsize)) {
   615             if ((LC_LOAD_DYLIB == lc->cmd)
   615             if ((LC_LOAD_DYLIB == lc->cmd)
   616                 || (LC_LOAD_WEAK_DYLIB == lc->cmd)) {
   616                 || (LC_LOAD_WEAK_DYLIB == lc->cmd)) {
   617                 if ((wh = (struct mach_header *)
   617                 if ((wh = (struct mach_header *)
   618                      my_find_image((char
   618                      my_find_image((char
   619                                     *) (((struct dylib_command *) lc)->dylib.
   619                                     *) (((struct dylib_command *) lc)->
   620                                         name.offset + (char *) lc)))) {
   620                                         dylib.name.offset + (char *) lc)))) {
   621                     if (dyld_NSIsSymbolNameDefinedInImage(wh, symbol)) {
   621                     if (dyld_NSIsSymbolNameDefinedInImage(wh, symbol)) {
   622                         nssym = dyld_NSLookupSymbolInImage(wh,
   622                         nssym = dyld_NSLookupSymbolInImage(wh,
   623                                                            symbol,
   623                                                            symbol,
   624                                                            NSLOOKUPSYMBOLINIMAGE_OPTION_BIND
   624                                                            NSLOOKUPSYMBOLINIMAGE_OPTION_BIND
   625                                                            |
   625                                                            |