]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/bundle-name-ownership/main.c
dyld-195.5.tar.gz
[apple/dyld.git] / unit-tests / test-cases / bundle-name-ownership / main.c
index 4244489e863cd1b7bbb00435a2d2305442751945..15c556351bcf70f9a44a44c8c4d48f5246d28a62 100644 (file)
@@ -31,6 +31,8 @@ typedef bool (*CheckFunc)();
 
 int main()
 {
 
 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;
        const char* path = "test.bundle";
 
        NSObjectFileImage ofi;
@@ -77,7 +79,7 @@ int main()
                FAIL("NSDestroyObjectFileImage failed");
                return 0;
        }
                FAIL("NSDestroyObjectFileImage failed");
                return 0;
        }
-
+#endif
        PASS("bundle-name-ownership");
        return 0;
 }
\ No newline at end of file
        PASS("bundle-name-ownership");
        return 0;
 }
\ No newline at end of file