From cd0b3f9695c2199979e04438472bdb3521374408 Mon Sep 17 00:00:00 2001 From: torsten Date: Thu, 9 Jan 2020 22:55:19 +0100 Subject: [PATCH] check if _SECURE_SCL is defined not equal to 0 --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index d99e57b8..ee8ab92f 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -324,7 +324,7 @@ inline typename Container::value_type* get_data(Container& c) { return c.data(); } -#ifdef _SECURE_SCL +#if defined(_SECURE_SCL) && _SECURE_SCL // Make a checked iterator to avoid MSVC warnings. template using checked_ptr = stdext::checked_array_iterator; template checked_ptr make_checked(T* p, std::size_t size) {