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-01-13 17:46:46 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-01-13 17:46:46 +0400
commit02386bd1e3b09dfa5716355af04c0f846291e641 (patch)
treec853a7d51fa1718fb71f6c104d5d37556a720fa2 /source/blender/datatoc
parent9cf6946d3113fe1a8b61954fd724f4db6a4a8e8e (diff)
fix compilation for mingw-w64
Diffstat (limited to 'source/blender/datatoc')
-rw-r--r--source/blender/datatoc/CMakeLists.txt4
-rw-r--r--source/blender/datatoc/datatoc_icon.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/datatoc/CMakeLists.txt b/source/blender/datatoc/CMakeLists.txt
index 78ae00d8a83..a1776c312f4 100644
--- a/source/blender/datatoc/CMakeLists.txt
+++ b/source/blender/datatoc/CMakeLists.txt
@@ -39,9 +39,9 @@ if(NOT WITH_HEADLESS)
)
include_directories(${PNG_INCLUDE_DIR})
+ link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
add_executable(datatoc_icon ${SRC})
- link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
- target_link_libraries(datatoc_icon ${PNG_LIBRARIES})
+ target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
endif()
diff --git a/source/blender/datatoc/datatoc_icon.c b/source/blender/datatoc/datatoc_icon.c
index 82eeb3af9b2..1569e554f9f 100644
--- a/source/blender/datatoc/datatoc_icon.c
+++ b/source/blender/datatoc/datatoc_icon.c
@@ -32,7 +32,7 @@
#include "../blenlib/BLI_sys_types.h"
/* for DIR */
-#ifndef WIN32
+#if !defined(WIN32) || defined(__MINGW64__)
# include <dirent.h>
#endif