properly enable strnlen checks for MSVC
This commit is contained in:
parent
1b10e48a1f
commit
1fde1eaa44
@ -144,7 +144,7 @@ if(HAVE_STRNDUP)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(HAVE_STRNLEN)
|
set(HAVE_STRNLEN true)
|
||||||
add_definitions(-DHAVE_STRNLEN)
|
add_definitions(-DHAVE_STRNLEN)
|
||||||
else()
|
else()
|
||||||
check_function_exists(strnlen HAVE_STRNLEN)
|
check_function_exists(strnlen HAVE_STRNLEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user