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) {