]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/NSAddressOfSymbol-NULL/main.c
dyld-750.6.tar.gz
[apple/dyld.git] / unit-tests / test-cases / NSAddressOfSymbol-NULL / main.c
index 9ac5211262d822841362f936c6566d8332d9de9f..09fea733572622092e6eb2a4fc9e6baccde52ff3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2008-2009 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -23,6 +23,7 @@
 #include <stdio.h>  // fprintf(), NULL
 #include <stdlib.h> // exit(), EXIT_SUCCESS
 #include <string.h>
+#include <Availability.h>
 
 #include <mach-o/dyld.h>
 
 
 int main()
 {
+// NSAddressOfSymbol is only available on Mac OS X - not iPhone OS
+#if __MAC_OS_X_VERSION_MIN_REQUIRED
        NSAddressOfSymbol(NULL);
+#endif
        
        PASS("NSAddressOfSymbol-NULL");
        return 0;