diff options
author | Brent Cook <bcook@openbsd.org> | 2016-07-31 17:10:39 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-07-31 17:12:47 -0500 |
commit | 950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e (patch) | |
tree | 6ff94c079e52edf9a5ce5b84150c12406243f95c /CMakeLists.txt | |
parent | f6582d1d7606d5dc1db65ced83119ba3b9b71985 (diff) | |
download | portable-950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e.tar.gz portable-950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e.tar.bz2 portable-950dcb2d07ac7bcc0964d3e8dff2cbb9441ba60e.zip |
properly enable strnlen checks for MSVC
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 710d8a9..657ae03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -107,7 +107,7 @@ if(HAVE_STRNDUP) | |||
107 | endif() | 107 | endif() |
108 | 108 | ||
109 | if(MSVC) | 109 | if(MSVC) |
110 | set(HAVE_STRNLEN) | 110 | set(HAVE_STRNLEN true) |
111 | add_definitions(-DHAVE_STRNLEN) | 111 | add_definitions(-DHAVE_STRNLEN) |
112 | else() | 112 | else() |
113 | check_function_exists(strnlen HAVE_STRNLEN) | 113 | check_function_exists(strnlen HAVE_STRNLEN) |