summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 306a3a4..39f13c0 100644
--- a/src/util.c
+++ b/src/util.c
@@ -42,7 +42,7 @@
#ifdef __cplusplus
extern "C"
#endif
-BOOLEAN WINAPI
+static BOOLEAN WINAPI
CreateSymbolicLink(LPCTSTR linkpath, LPCTSTR targetpath, DWORD flags)
{
typedef BOOLEAN (WINAPI* PFUNC)(LPCTSTR, LPCTSTR, DWORD);
@@ -180,6 +180,8 @@ lilv_get_lang(void)
return lang;
}
+#ifndef _WIN32
+
/** Append suffix to dst, update dst_len, and return the realloc'd result. */
static char*
strappend(char* dst, size_t* dst_len, const char* suffix, size_t suffix_len)
@@ -204,6 +206,8 @@ append_var(char* dst, size_t* dst_len, const char* var)
}
}
+#endif
+
/** Expand variables (e.g. POSIX ~ or $FOO, Windows %FOO%) in `path`. */
char*
lilv_expand(const char* path)