16
16
#include <dlfcn.h>
17
17
#endif
18
18
19
- #if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !DEPLOYMENT_TARGET_ANDROID
19
+ #if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !TARGET_OS_ANDROID
20
20
21
21
#if TARGET_OS_LINUX
22
22
#if TARGET_RT_64_BIT
49
49
_kCFBundleFHSDirectory_lib
50
50
#endif // TARGET_OS_LINUX
51
51
52
- #endif // !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !DEPLOYMENT_TARGET_ANDROID
52
+ #endif // !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !TARGET_OS_ANDROID
53
53
54
54
// This is here because on iPhoneOS with the dyld shared cache, we remove binaries from their
55
55
// original locations on disk, so checking whether a binary's path exists is no longer sufficient.
@@ -200,7 +200,7 @@ static CFURLRef _CFBundleCopyExecutableURLInDirectory2(CFBundleRef bundle, CFURL
200
200
Boolean doExecSearch = true;
201
201
#endif
202
202
203
- #if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !DEPLOYMENT_TARGET_ANDROID
203
+ #if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !TARGET_OS_ANDROID
204
204
if (lookupMainExe && bundle && bundle -> _isFHSInstalledBundle ) {
205
205
// For a FHS installed bundle, the URL points to share/Bundle.resources, and the binary is in:
206
206
@@ -224,13 +224,13 @@ static CFURLRef _CFBundleCopyExecutableURLInDirectory2(CFBundleRef bundle, CFURL
224
224
225
225
CFRelease (prefixPath );
226
226
}
227
- #endif // !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !DEPLOYMENT_TARGET_ANDROID
227
+ #endif // !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !TARGET_OS_ANDROID
228
228
229
229
// Now, look for the executable inside the bundle.
230
230
if (!foundIt && doExecSearch && 0 != version ) {
231
231
CFURLRef exeDirURL = NULL ;
232
232
233
- #if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !DEPLOYMENT_TARGET_ANDROID
233
+ #if !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !TARGET_OS_ANDROID
234
234
if (bundle && bundle -> _isFHSInstalledBundle ) {
235
235
CFURLRef withoutExtension = CFURLCreateCopyDeletingPathExtension (kCFAllocatorSystemDefault , url );
236
236
CFStringRef lastPathComponent = CFURLCopyLastPathComponent (withoutExtension );
@@ -245,7 +245,7 @@ static CFURLRef _CFBundleCopyExecutableURLInDirectory2(CFBundleRef bundle, CFURL
245
245
CFRelease (libexec );
246
246
CFRelease (exeDirName );
247
247
} else
248
- #endif // !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !DEPLOYMENT_TARGET_ANDROID
248
+ #endif // !DEPLOYMENT_RUNTIME_OBJC && !TARGET_OS_WIN32 && !TARGET_OS_ANDROID
249
249
if (1 == version ) {
250
250
exeDirURL = CFURLCreateWithString (kCFAllocatorSystemDefault , _CFBundleExecutablesURLFromBase1 , url );
251
251
} else if (2 == version ) {
0 commit comments