Mercurial > hg > xemacs-beta
comparison src/sysdll.c @ 2054:91d4c8c65a0f
[xemacs-hg @ 2004-05-02 04:06:51 by malcolmp]
Fix warnings and errors when building GTK using C++ and --use-union-type.
author | malcolmp |
---|---|
date | Sun, 02 May 2004 04:07:01 +0000 |
parents | 7fdde2d3ae5f |
children | 0bcc1e4dfd91 |
comparison
equal
deleted
inserted
replaced
2053:11e709117623 | 2054:91d4c8c65a0f |
---|---|
360 * dependencies, then it probably isn't there. | 360 * dependencies, then it probably isn't there. |
361 */ | 361 */ |
362 static NSSymbol | 362 static NSSymbol |
363 search_linked_libs(const struct mach_header * mh, const char *symbol) | 363 search_linked_libs(const struct mach_header * mh, const char *symbol) |
364 { | 364 { |
365 int n; | 365 unsigned long n; |
366 NSSymbol nssym = 0; | 366 NSSymbol nssym = 0; |
367 | 367 |
368 struct load_command *lc = | 368 struct load_command *lc = |
369 (struct load_command *)((char *)mh + sizeof(struct mach_header)); | 369 (struct load_command *)((char *)mh + sizeof(struct mach_header)); |
370 | 370 |
405 | 405 |
406 if (h == NULL) | 406 if (h == NULL) |
407 { | 407 { |
408 /* NOTE: This assumes that this function is included in the main program | 408 /* NOTE: This assumes that this function is included in the main program |
409 and not in a shared library. */ | 409 and not in a shared library. */ |
410 const struct mach_header* my_mh = image_for_address(&dll_function); | 410 const struct mach_header* my_mh = image_for_address((void*) &dll_function); |
411 | 411 |
412 if (NSIsSymbolNameDefinedInImage(my_mh, n)) | 412 if (NSIsSymbolNameDefinedInImage(my_mh, n)) |
413 { | 413 { |
414 sym = | 414 sym = |
415 NSLookupSymbolInImage(my_mh, | 415 NSLookupSymbolInImage(my_mh, |