X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/2965425374ca4413339436c2f706f7b5508402e2..9a27adb241486ab7597ffaea2b5613cd3d8e1f60:/Keychain/SecKeychainAPI.cpp diff --git a/Keychain/SecKeychainAPI.cpp b/Keychain/SecKeychainAPI.cpp index 50378ea2..aad191ef 100644 --- a/Keychain/SecKeychainAPI.cpp +++ b/Keychain/SecKeychainAPI.cpp @@ -29,7 +29,18 @@ NOTE: Any function with Create or Copy in the name returns an object that must be released. */ +#if !defined(SECURITY_USE_LEGACY_HEADER) +#define SECURITY_USE_LEGACY_HEADER +#define UNDEFINE_SECURITY_USE_LEGACY_HEADER +#endif + #include + +#ifdef UNDEFINE_SECURITY_USE_LEGACY_HEADER +#undef SECURITY_USE_LEGACY_HEADER +#undef UNDEFINE_SECURITY_USE_LEGACY_HEADER +#endif + #include #include @@ -71,3 +82,4 @@ OSStatus SecKeychainCopySearchNextItem(SecKeychainSearchRef searchRef, SecKeycha return SecKeychainSearchCopyNext(searchRef, itemRef); } +