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:35 -0500 |
commit | 47d4f7109f78716e0cb1b52c45c7c71a8c81162b (patch) | |
tree | bbe29bb0af91816ab5cf4c8f7b13fd6ed5716987 | |
parent | 12348e6f64cc3ac6cf5bc01ba5e21e427dd93deb (diff) | |
download | portable-47d4f7109f78716e0cb1b52c45c7c71a8c81162b.tar.gz portable-47d4f7109f78716e0cb1b52c45c7c71a8c81162b.tar.bz2 portable-47d4f7109f78716e0cb1b52c45c7c71a8c81162b.zip |
properly enable strnlen checks for MSVC
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c38017..f0e074a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -144,7 +144,7 @@ if(HAVE_STRNDUP) | |||
144 | endif() | 144 | endif() |
145 | 145 | ||
146 | if(MSVC) | 146 | if(MSVC) |
147 | set(HAVE_STRNLEN) | 147 | set(HAVE_STRNLEN true) |
148 | add_definitions(-DHAVE_STRNLEN) | 148 | add_definitions(-DHAVE_STRNLEN) |
149 | else() | 149 | else() |
150 | check_function_exists(strnlen HAVE_STRNLEN) | 150 | check_function_exists(strnlen HAVE_STRNLEN) |