Skip to content

Commit 36094fb

Browse files
authored
Merge pull request #3089 from compnerd/bundle
2 parents f665c1e + 5d3497e commit 36094fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/PlugIn.subproj/CFBundle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ static CFBundleRef _CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL,
784784
Boolean exists = false;
785785
SInt32 mode = 0;
786786
SInt32 res = _CFGetPathProperties(allocator, (char *)buff, &exists, &mode, NULL, NULL, NULL, NULL);
787-
#if TARGET_OS_WIN32
787+
#if DEPLOYMENT_RUNTIME_OBJC && TARGET_OS_WIN32
788788
if (!(res == 0 && exists && ((mode & S_IFMT) == S_IFDIR))) {
789789
// 2nd chance at finding a bundle path - remove the last path component (e.g., mybundle.resources) and try again
790790
CFURLRef shorterPath = CFURLCreateCopyDeletingLastPathComponent(allocator, newURL);

0 commit comments

Comments
 (0)