]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/DYLD_LIBRARY_PATH-dyld_env/main.c
dyld-353.2.1.tar.gz
[apple/dyld.git] / unit-tests / test-cases / DYLD_LIBRARY_PATH-dyld_env / main.c
index a903b04b7af5f87d08bf09d77ae989c26cd38043..224d93e8527e7a64f070ef5878d9d8b5daea06bd 100644 (file)
@@ -34,12 +34,14 @@ extern int foo();
 
 int main(int argc, const char* argv[])
 {
+#if __MAC_OS_X_VERSION_MIN_REQUIRED
        int expectedResult = atoi(argv[1]);
        int actualResult = foo();
        //fprintf(stderr, "foo() returned %d, expected %d\n", actualResult, expectedResult);
        if ( actualResult != expectedResult )
                FAIL("DYLD_VERSIONED_LIBRARY_PATH-basic using wrong dylib. foo() returned %d, expected %d", actualResult, expectedResult);
        else
+#endif
                PASS("DYLD_VERSIONED_LIBRARY_PATH-basic");
                
        return EXIT_SUCCESS;