aboutsummaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
authorRosen Penev <[email protected]>2023-12-03 12:51:24 -0800
committerGitHub <[email protected]>2023-12-03 20:51:24 +0000
commite6bb91212be93b0b7e4c99c1409f91dd8e211688 (patch)
tree6ac4709cbd44ebe706eae85841c8e204e8f8f365 /core/device.h
parented0420f4297712d8104da8eef5301e3d9b899056 (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 'core/device.h')
-rw-r--r--core/device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/device.h b/core/device.h
index b1ffc9ce..8abbef21 100644
--- a/core/device.h
+++ b/core/device.h
@@ -320,8 +320,8 @@ struct DeviceBase {
void renderSamples(void *outBuffer, const uint numSamples, const size_t frameStep);
/* Caller must lock the device state, and the mixer must not be running. */
-#ifdef __USE_MINGW_ANSI_STDIO
- [[gnu::format(gnu_printf,2,3)]]
+#ifdef __MINGW32__
+ [[gnu::format(__MINGW_PRINTF_FORMAT,2,3)]]
#else
[[gnu::format(printf,2,3)]]
#endif