[trunk] Add support for compiling libtiff with VS2008

This commit is contained in:
Mathieu Malaterre 2012-03-12 16:40:29 +00:00
parent 747db4d940
commit dd998e7fd3
1 changed files with 27 additions and 0 deletions

View File

@ -173,6 +173,33 @@ if(HAVE_STDINT_H)
set(TIFF_UINT64_FORMAT "\"%lu\"")
set(TIFF_PTRDIFF_FORMAT "\"%ld\"")
set(TIFF_SSIZE_FORMAT "\"%ld\"")
else()
set(TIFF_INT8_T signed __int8)
set(TIFF_INT16_T signed __int16)
set(TIFF_INT32_T signed __int32)
set(TIFF_INT64_T signed __int64)
set(TIFF_UINT8_T unsigned __int8)
set(TIFF_UINT16_T unsigned __int16)
set(TIFF_UINT32_T unsigned __int32)
set(TIFF_UINT64_T unsigned __int64)
set(TIFF_PTRDIFF_T ptrdiff_t)
if(NOT HAVE_SSIZE_T)
if("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)
set(TIFF_SSIZE_T signed __int64)
elseif("${CMAKE_SIZEOF_VOID_P}" EQUAL 4)
set(TIFF_SSIZE_T signed __int32)
else()
message(FATAL_ERROR "unknown ssize_t")
endif()
else()
set(TIFF_SSIZE_T ssize_t)
endif()
set(TIFF_INT32_FORMAT "\"%d\"")
set(TIFF_UINT32_FORMAT "\"%u\"")
set(TIFF_INT64_FORMAT "\"%ld\"")
set(TIFF_UINT64_FORMAT "\"%lu\"")
set(TIFF_PTRDIFF_FORMAT "\"%ld\"")
set(TIFF_SSIZE_FORMAT "\"%ld\"")
endif()
#