Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CoreFoundation/PlugIn.subproj/CFBundle_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static bool _CFGetPathFromFileDescriptor(int fd, char *path) {
return true;
}

#else
#elif TARGET_OS_WIN32

static bool _CFGetPathFromFileDescriptor(int fd, char *path) {
HANDLE hFile = _get_osfhandle(fd);
Expand Down Expand Up @@ -483,6 +483,13 @@ static bool _CFGetPathFromFileDescriptor(int fd, char *path) {
return true;
}

#else

static bool _CFGetPathFromFileDescriptor(int fd, char *path) {
#warning This platform does not have a way to go back from an open file descriptor to a path.
return false;
}

#endif

CF_EXTERN_C_END
Expand Down