[Bf-blender-cvs] [aabf415] master: Fix building for Windows.

Antony Riakiotakis noreply at git.blender.org
Mon Apr 7 03:18:15 CEST 2014


Commit: aabf4154e511856277abcefe552dd96a0115dc7c
Author: Antony Riakiotakis
Date:   Mon Apr 7 04:18:03 2014 +0300
https://developer.blender.org/rBaabf4154e511856277abcefe552dd96a0115dc7c

Fix building for Windows.

===================================================================

M	source/blender/imbuf/intern/thumbs.c

===================================================================

diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c
index ff1c399..b8acca3 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/";




More information about the Bf-blender-cvs mailing list