1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

Fixed compilation errors on MinGW

This commit is contained in:
Joshua Gerrard 2015-11-23 12:35:05 +00:00
parent 781bef41ab
commit e220f35250
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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());