X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/partial-library-load/main.c diff --git a/unit-tests/test-cases/partial-library-load/main.c b/unit-tests/test-cases/partial-library-load/main.c index 0c81554..9993ac4 100644 --- a/unit-tests/test-cases/partial-library-load/main.c +++ b/unit-tests/test-cases/partial-library-load/main.c @@ -29,6 +29,8 @@ int main() { +// NSCreateObjectFileImageFromMemory is only available on Mac OS X - not iPhone OS +#if __MAC_OS_X_VERSION_MIN_REQUIRED // load bundle which indirectly loads libfoo and libbar NSObjectFileImage ofi; if ( NSCreateObjectFileImageFromFile("test.bundle", &ofi) != NSObjectFileImageSuccess ) { @@ -48,7 +50,7 @@ int main() if ( mh != NULL ) { return 1; } - +#endif #if 0 // find foo NSSymbol sym = NSLookupSymbolInImage(mh, "_foo", NSLOOKUPSYMBOLINIMAGE_OPTION_BIND);