From 6cfa4b294676df99d1e253173fa693d5b577d499 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 28 Mar 2023 15:09:01 +0200 Subject: [PATCH] Fix clang-win missing attribute error --- include/boost/charconv/detail/floff.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/charconv/detail/floff.hpp b/include/boost/charconv/detail/floff.hpp index 50965ef..3b842da 100644 --- a/include/boost/charconv/detail/floff.hpp +++ b/include/boost/charconv/detail/floff.hpp @@ -34,7 +34,7 @@ // Suppress additional buffer overrun check. // I have no idea why MSVC thinks some functions here are vulnerable to the buffer overrun // attacks. No, they aren't. -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(__clang__) && !defined(__GNUC__) #define JKJ_SAFEBUFFERS __declspec(safebuffers) #else #define JKJ_SAFEBUFFERS