This commit is contained in:
William A Rowe Jr 2022-11-01 05:21:14 +09:00 committed by GitHub
commit 40154a99c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -315,7 +315,11 @@ check_type_size("ssize_t" SIZEOF_SSIZE_T)
if(SIZEOF_SSIZE_T STREQUAL "")
# 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(ssize_t int)
if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
set(ssize_t int64_t)
else()
set(ssize_t int)
endif()
endif()
# AC_TYPE_UINT8_T
# AC_TYPE_UINT16_T