Fix clang-win missing attribute error

This commit is contained in:
Matt Borland
2023-03-28 15:09:01 +02:00
parent 7233388bf1
commit 6cfa4b2946

View File

@@ -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