diff options
author | Rosen Penev <[email protected]> | 2023-12-03 12:51:24 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-03 20:51:24 +0000 |
commit | e6bb91212be93b0b7e4c99c1409f91dd8e211688 (patch) | |
tree | 6ac4709cbd44ebe706eae85841c8e204e8f8f365 /alc/context.h | |
parent | ed0420f4297712d8104da8eef5301e3d9b899056 (diff) |
fix printf format for MinGW (#942)
With gcc, mingw uses gnu_printf. With clang, printf is used as it does
not support gnu_printf. Use the internal header to match this properly.
Signed-off-by: Rosen Penev <[email protected]>
Diffstat (limited to 'alc/context.h')
-rw-r--r-- | alc/context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/context.h b/alc/context.h index 201c8873..b190c5ea 100644 --- a/alc/context.h +++ b/alc/context.h @@ -186,8 +186,8 @@ struct ALCcontext : public al::intrusive_ref<ALCcontext>, ContextBase { */ void applyAllUpdates(); -#ifdef __USE_MINGW_ANSI_STDIO - [[gnu::format(gnu_printf, 3, 4)]] +#ifdef __MINGW32__ + [[gnu::format(__MINGW_PRINTF_FORMAT, 3, 4)]] #else [[gnu::format(printf, 3, 4)]] #endif |