X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/0959b6d4289bd106fddb7fe7d84a346159895fdd..refs/heads/master:/unit-tests/test-cases/bundle-basic/main.c?ds=sidebyside diff --git a/unit-tests/test-cases/bundle-basic/main.c b/unit-tests/test-cases/bundle-basic/main.c index 27f7635..49d30c3 100644 --- a/unit-tests/test-cases/bundle-basic/main.c +++ b/unit-tests/test-cases/bundle-basic/main.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "test.h" // PASS(), FAIL() @@ -30,6 +31,8 @@ typedef bool (*CheckFunc)(); int main() { +// these APIs are only available on Mac OS X - not iPhone OS +#if __MAC_OS_X_VERSION_MIN_REQUIRED NSObjectFileImage ofi; if ( NSCreateObjectFileImageFromFile("test.bundle", &ofi) != NSObjectFileImageSuccess ) { FAIL("NSCreateObjectFileImageFromFile failed"); @@ -63,7 +66,7 @@ int main() FAIL("NSDestroyObjectFileImage failed"); return 1; } - +#endif PASS("bundle-basic"); return 0; } \ No newline at end of file