return 0;
}
-#import <mach-o/dyld.h>
+extern "C" {
+ #import <mach-o/dyld.h>
+};
enum dyldErrorSource
{
}
}
-void *dlopen(char *path, int mode /* mode is ignored */)
+void *dlopen(const char *path, int mode /* mode is ignored */)
{
int dyld_result;
NSObjectFileImage ofile;
return handle;
}
-void *dlsym(void *handle, char *symbol)
+void *dlsym(void *handle, const char *symbol)
{
void *addr;