From cfa1eb9f7d472ad0248e60000133b8f23a5f8125 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 23 May 2013 20:17:13 +0200 Subject: Silence compiler warnings for win32 builds --- common/userpref.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/userpref.c') diff --git a/common/userpref.c b/common/userpref.c index 0e774b7..d363b0e 100644 --- a/common/userpref.c +++ b/common/userpref.c @@ -102,6 +102,7 @@ static char *userpref_utf16_to_utf8(wchar_t *unistr, long len, long *items_read, } #endif +#ifndef WIN32 static const char *userpref_get_tmp_dir() { const char *cdir = getenv("TMPDIR"); @@ -115,6 +116,7 @@ static const char *userpref_get_tmp_dir() return cdir; return "/tmp"; } +#endif static const char *userpref_get_config_dir() { -- cgit v1.1-32-gdbae