1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 23:59:41 +02:00
audacity/lib-src/lv2/windows/lilv_config.h
lllucius 6c4d80f93a 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).
2013-11-11 01:12:30 +00:00

36 lines
1.0 KiB
C
Executable File

/* WARNING! All changes made to this file will be lost! */
#ifndef W_LILV_CONFIG_H_WAF
#define W_LILV_CONFIG_H_WAF
#define LILV_NEW_LV2 1
/* #undef HAVE_FLOCK */
/* #undef HAVE_FILENO */
/* #undef HAVE_CLOCK_GETTIME */
#define LILV_VERSION "0.16.0"
#define LILV_PATH_SEP ";"
#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 */