X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/bac542e65c0030c0d819c7ff1dcfc25892a61844..484799563310e57a6cac8693ce18f6db71c1b80d:/unit-tests/test-cases/dyld-func-lookup/foo.c diff --git a/unit-tests/test-cases/dyld-func-lookup/foo.c b/unit-tests/test-cases/dyld-func-lookup/foo.c index 00b5af3..bc232a2 100644 --- a/unit-tests/test-cases/dyld-func-lookup/foo.c +++ b/unit-tests/test-cases/dyld-func-lookup/foo.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -22,6 +22,11 @@ */ #include +#include + + +// _dyld_func_lookup is only available in 10.5 and earlier +#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (__MAC_OS_X_VERSION_MIN_REQUIRED <= __MAC_10_5) extern bool _dyld_func_lookup(const char* dyld_func_name, void** address); @@ -42,3 +47,5 @@ bool check_dyld_func_lookup() // looks good return true; } + +#endif