Skip to content

Commit d3d71bd

Browse files
committed
Adjust ssize_t check for Windows
1 parent 1a233d9 commit d3d71bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmake/cmake/ConfigureChecks.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,13 @@ if(SIZEOF_SIZE_T STREQUAL "")
208208
set(SIZEOF_SIZE_T_CODE "#define SIZEOF_SIZE_T 0")
209209
endif()
210210

211-
check_type_size("ssize_t" SIZEOF_SSIZE_T)
212-
if(SIZEOF_SSIZE_T STREQUAL "")
211+
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
213212
set(SIZEOF_SSIZE_T_CODE "#define SIZEOF_SSIZE_T 0")
213+
else()
214+
check_type_size("ssize_t" SIZEOF_SSIZE_T)
215+
if(SIZEOF_SSIZE_T STREQUAL "")
216+
set(SIZEOF_SSIZE_T_CODE "#define SIZEOF_SSIZE_T 0")
217+
endif()
214218
endif()
215219

216220
check_type_size("uid_t" SIZEOF_UID_T)

0 commit comments

Comments
 (0)