From 779edf2b10b6bb52a745d8e89ef503f13526eea0 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 20 Oct 2022 10:28:16 +1000 Subject: [PATCH] Fix a compilation error with newer versions of MSVC. Public issue https://github.com/mackron/miniaudio/issues/567 --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 0610b24d..71e48f10 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -3914,7 +3914,7 @@ implications. Where supported by the compiler, alignment will be used, but other architecture does not require it, it will simply leave it unaligned. This is the case with old versions of Visual Studio, which I've confirmed with at least VC6. */ -#if defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) +#if !defined(_MSC_VER) && defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) #include #define MA_ATOMIC(alignment, type) alignas(alignment) type #else