comparison Resources/CMake/LibTiffConfiguration.cmake @ 25:4f32a0c255dc

fix msvc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Oct 2016 12:44:35 +0200
parents 16ef671c9269
children 2e5db9b72a7b
comparison
equal deleted inserted replaced
24:16ef671c9269 25:4f32a0c255dc
11 #include <stddef.h> 11 #include <stddef.h>
12 #include <fcntl.h> 12 #include <fcntl.h>
13 #include <string.h> 13 #include <string.h>
14 ") 14 ")
15 file(WRITE ${LIBTIFF_SOURCES_DIR}/libtiff/tiffconf.h " 15 file(WRITE ${LIBTIFF_SOURCES_DIR}/libtiff/tiffconf.h "
16 #if defined(_MSC_VER)
17 # define WIN32_LEAN_AND_MEAN
18 # include <windows.h>
19 typedef SSIZE_T ssize_t;
20 #endif
21
16 #include <stdint.h> 22 #include <stdint.h>
17 #include <sys/types.h> 23 #include <sys/types.h>
18 ") 24 ")
19 endif() 25 endif()
20 26
21 set(TIFF_FILLORDER FILLORDER_MSB2LSB) 27 set(TIFF_FILLORDER FILLORDER_MSB2LSB)
22 if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i.*86.*" OR 28 if (CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "i.*86.*" OR
23 CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*" OR 29 CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "amd64.*" OR
24 CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64.*") 30 CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "x86_64.*")
25 set(TIFF_FILLORDER FILLORDER_LSB2MSB) 31 set(TIFF_FILLORDER FILLORDER_LSB2MSB)
26 endif() 32 endif()
27 33