Merge 4e0e794a35
into cb11cfcd2c
This commit is contained in:
commit
40154a99c2
|
@ -315,7 +315,11 @@ check_type_size("ssize_t" SIZEOF_SSIZE_T)
|
||||||
if(SIZEOF_SSIZE_T STREQUAL "")
|
if(SIZEOF_SSIZE_T STREQUAL "")
|
||||||
# ssize_t is a signed type in POSIX storing at least -1.
|
# ssize_t is a signed type in POSIX storing at least -1.
|
||||||
# Set it to "int" to match the behavior of AC_TYPE_SSIZE_T (autotools).
|
# Set it to "int" to match the behavior of AC_TYPE_SSIZE_T (autotools).
|
||||||
|
if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
|
set(ssize_t int64_t)
|
||||||
|
else()
|
||||||
set(ssize_t int)
|
set(ssize_t int)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
# AC_TYPE_UINT8_T
|
# AC_TYPE_UINT8_T
|
||||||
# AC_TYPE_UINT16_T
|
# AC_TYPE_UINT16_T
|
||||||
|
|
Loading…
Reference in New Issue