Mercurial > hg > orthanc-wsi
comparison Resources/CMake/LibTiffConfiguration.cmake @ 27:2e5db9b72a7b
fix msvc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Oct 2016 13:02:57 +0200 |
parents | 4f32a0c255dc |
children | 5f0c6f3871a3 |
comparison
equal
deleted
inserted
replaced
26:952b2c6ee0a2 | 27:2e5db9b72a7b |
---|---|
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) | 16 #if defined(_MSC_VER) |
17 # define WIN32_LEAN_AND_MEAN | 17 # if !defined(ssize_t) |
18 # include <windows.h> | 18 # define WIN32_LEAN_AND_MEAN |
19 typedef SSIZE_T ssize_t; | 19 # include <windows.h> |
20 # define ssize_t SSIZE_T | |
21 # endif | |
22 # if !defined(snprintf) | |
23 # define snprintf _snprintf | |
24 # endif | |
20 #endif | 25 #endif |
21 | 26 |
22 #include <stdint.h> | 27 #include <stdint.h> |
23 #include <sys/types.h> | 28 #include <sys/types.h> |
24 ") | 29 ") |