diff options
-rw-r--r-- | source/blender/imbuf/intern/dds/CMakeLists.txt | 1 | ||||
-rw-r--r-- | source/blender/imbuf/intern/dds/SConscript | 3 | ||||
-rw-r--r-- | source/blender/imbuf/intern/dds/dds_api.cpp | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/dds/CMakeLists.txt b/source/blender/imbuf/intern/dds/CMakeLists.txt index ae5f1ca9d09..e514b7ab6f9 100644 --- a/source/blender/imbuf/intern/dds/CMakeLists.txt +++ b/source/blender/imbuf/intern/dds/CMakeLists.txt @@ -31,6 +31,7 @@ set(INC ../../../blenlib ../../../makesdna ../../../../../intern/guardedalloc + ../../../../../intern/utfconv ) set(INC_SYS diff --git a/source/blender/imbuf/intern/dds/SConscript b/source/blender/imbuf/intern/dds/SConscript index 918ae7b530b..4245f5001b9 100644 --- a/source/blender/imbuf/intern/dds/SConscript +++ b/source/blender/imbuf/intern/dds/SConscript @@ -11,7 +11,8 @@ incs = ['.', '../../../blenkernel', '../../../blenlib', 'intern/include', - '#/intern/guardedalloc'] + '#/intern/guardedalloc', + '#/intern/utfconv'] defs = ['WITH_DDS'] diff --git a/source/blender/imbuf/intern/dds/dds_api.cpp b/source/blender/imbuf/intern/dds/dds_api.cpp index 1aaeb4766e1..71313d4438f 100644 --- a/source/blender/imbuf/intern/dds/dds_api.cpp +++ b/source/blender/imbuf/intern/dds/dds_api.cpp @@ -32,7 +32,7 @@ #include <stdio.h> // printf #include <fstream> -#ifdef WIN32 +#if defined (WIN32) && !defined(FREE_WINDOWS) #include "utfconv.h" #endif @@ -54,7 +54,7 @@ int imb_save_dds(struct ImBuf * ibuf, const char *name, int flags) /* open file for writing */ std::ofstream fildes; -#ifdef WIN32 +#if defined (WIN32) && !defined(FREE_WINDOWS) wchar_t *wname = alloc_utf16_from_8(name, 0); fildes.open(wname); free(wname); |