diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index de6790e9cb..a8c2c690fb 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -911,7 +911,7 @@ bool File::createSymbolicLink (const File& linkFileToCreate, bool overwriteExist } return true; - #elif JUCE_WINDOWS + #elif JUCE_MSVC return CreateSymbolicLink (linkFileToCreate.getFullPathName().toWideCharPointer(), fullPath.toWideCharPointer(), isDirectory() ? SYMBOLIC_LINK_FLAG_DIRECTORY : 0) != FALSE; diff --git a/modules/juce_core/native/juce_win32_Files.cpp b/modules/juce_core/native/juce_win32_Files.cpp index 715be33882..5346923fa2 100644 --- a/modules/juce_core/native/juce_win32_Files.cpp +++ b/modules/juce_core/native/juce_win32_Files.cpp @@ -643,6 +643,7 @@ bool File::isShortcut() const File File::getLinkedTarget() const { + #if JUCE_MSVC { HANDLE h = CreateFile (getFullPathName().toWideCharPointer(), GENERIC_READ, FILE_SHARE_READ, nullptr, @@ -676,6 +677,7 @@ File File::getLinkedTarget() const CloseHandle (h); } } + #endif File result (*this); String p (getFullPathName());