Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-04-07 05:18:03 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-04-07 05:18:03 +0400
commitaabf4154e511856277abcefe552dd96a0115dc7c (patch)
tree5bfafe02f8f7e8e82b986afcc26f63e563e0e09e /source/blender/imbuf
parentfe05f97841c0ee3e2a6e15f2252ad160fefc3509 (diff)
Fix building for Windows.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/thumbs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index ff1c39997a5..b8acca3f8b9 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -91,7 +91,8 @@ static bool get_thumb_dir(char *dir, ThumbSize size)
SHGetSpecialFolderPathW(0, dir_16, CSIDL_PROFILE, 0);
conv_utf_16_to_8(dir_16, dir, FILE_MAX);
s += strlen(dir);
-#elif defined(USE_FREEDESKTOP)
+#else
+#if defined(USE_FREEDESKTOP)
const char *home_cache = getenv("XDG_CACHE_HOME");
const char *home = home_cache ? home_cache : getenv("HOME");
#else
@@ -105,7 +106,7 @@ static bool get_thumb_dir(char *dir, ThumbSize size)
s += BLI_strncpy_rlen(s, "/.cache", FILE_MAX - (s - dir));
}
#endif
-
+#endif
switch (size) {
case THB_NORMAL:
subdir = "/" THUMBNAILS "/normal/";