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:
parent
781bef41ab
commit
e220f35250
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue