]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/framework-fallback/main.c
dyld-353.2.1.tar.gz
[apple/dyld.git] / unit-tests / test-cases / framework-fallback / main.c
index 904aeb38438d11a28b68eeb32bdcf8d4e2606ef9..fdaa89366a485749fa7b5525ed3da1876f989f80 100644 (file)
 int
 main(int argc, const char* argv[])
 {
+#if __MAC_OS_X_VERSION_MIN_REQUIRED
        const struct mach_header *image;
 
        image = NSAddImage("AppKit.framework/AppKit",
                        NSADDIMAGE_OPTION_RETURN_ON_ERROR | NSADDIMAGE_OPTION_WITH_SEARCHING);
-       if ( image != NULL )
-               PASS("AppKit loaded");
-       else
+       if ( image == NULL )
                FAIL("Could not load AppKit");
+       else
+#endif
+               PASS("AppKit loaded");
 
        return 0;
 }