X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f70ab56e16ece5b1b73d72b7320752dd1153e5a2..9806a0e71eb2190827e93cd463e9682a3b939eee:/src/unix/dl_macosx.cpp?ds=sidebyside diff --git a/src/unix/dl_macosx.cpp b/src/unix/dl_macosx.cpp index 8e607cf912..b2384b8459 100644 --- a/src/unix/dl_macosx.cpp +++ b/src/unix/dl_macosx.cpp @@ -29,7 +29,9 @@ int dlclose(void *handle) /* stub only */ return 0; } -#import +extern "C" { + #import +}; enum dyldErrorSource { @@ -68,7 +70,7 @@ void TranslateError(const char *path, enum dyldErrorSource type, int number) } } -void *dlopen(char *path, int mode /* mode is ignored */) +void *dlopen(const char *path, int mode /* mode is ignored */) { int dyld_result; NSObjectFileImage ofile; @@ -89,7 +91,7 @@ void *dlopen(char *path, int mode /* mode is ignored */) return handle; } -void *dlsym(void *handle, char *symbol) +void *dlsym(void *handle, const char *symbol) { void *addr;