mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Fix running on Windows 95.
Creating the symbolic link will fail on 95, but it only matters if we state is saved...which Audacity doesn't do (yet).
This commit is contained in:
parent
488c387b18
commit
6c4d80f93a
@ -12,4 +12,24 @@
|
||||
#define LILV_DIR_SEP "\\"
|
||||
#define LILV_DEFAULT_LV2_PATH "%APPDATA%\\LV2;%COMMONPROGRAMFILES%\\LV2"
|
||||
|
||||
#include <windows.h>
|
||||
#undef CreateSymbolicLink
|
||||
inline BOOLEAN CreateSymbolicLink(LPCSTR lpSymlinkFileName,
|
||||
LPCSTR lpTargetFileName,
|
||||
DWORD dwFlags)
|
||||
{
|
||||
typedef BOOLEAN (WINAPI *CSL)(LPCSTR lpSymlinkFileName,
|
||||
LPCSTR lpTargetFileName,
|
||||
DWORD dwFlags);
|
||||
|
||||
CSL *symlink = (CSL *) GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")),
|
||||
TEXT("CreateSymbolicLinkA"));
|
||||
if (symlink)
|
||||
{
|
||||
return (*symlink)(lpSymlinkFileName, lpTargetFileName, dwFlags);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#endif /* W_LILV_CONFIG_H_WAF */
|
||||
|
Loading…
x
Reference in New Issue
Block a user