X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..412ebb8e3cc35d457058c31310d89ef96b7c416d:/unit-tests/test-cases/bundle-name-ownership/main.c?ds=sidebyside diff --git a/unit-tests/test-cases/bundle-name-ownership/main.c b/unit-tests/test-cases/bundle-name-ownership/main.c index 4244489..15c5563 100644 --- a/unit-tests/test-cases/bundle-name-ownership/main.c +++ b/unit-tests/test-cases/bundle-name-ownership/main.c @@ -31,6 +31,8 @@ typedef bool (*CheckFunc)(); int main() { +// NSCreateObjectFileImageFromMemory is only available on Mac OS X - not iPhone OS +#if __MAC_OS_X_VERSION_MIN_REQUIRED const char* path = "test.bundle"; NSObjectFileImage ofi; @@ -77,7 +79,7 @@ int main() FAIL("NSDestroyObjectFileImage failed"); return 0; } - +#endif PASS("bundle-name-ownership"); return 0; } \ No newline at end of file