aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--al/effects/effects.h4
-rw-r--r--al/filter.cpp4
-rw-r--r--alc/backends/base.h4
-rw-r--r--alc/context.h4
-rw-r--r--core/ambdec.cpp4
-rw-r--r--core/device.h4
-rw-r--r--core/logging.h4
7 files changed, 14 insertions, 14 deletions
diff --git a/al/effects/effects.h b/al/effects/effects.h
index 9d57dd82..f30f256a 100644
--- a/al/effects/effects.h
+++ b/al/effects/effects.h
@@ -16,8 +16,8 @@ class effect_exception final : public al::base_exception {
ALenum mErrorCode;
public:
-#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
diff --git a/al/filter.cpp b/al/filter.cpp
index f0a078b7..4f79db7d 100644
--- a/al/filter.cpp
+++ b/al/filter.cpp
@@ -53,8 +53,8 @@ class filter_exception final : public al::base_exception {
ALenum mErrorCode;
public:
-#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
diff --git a/alc/backends/base.h b/alc/backends/base.h
index eea0d238..e1f53405 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -103,8 +103,8 @@ class backend_exception final : public base_exception {
backend_error mErrorCode;
public:
-#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
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
diff --git a/core/ambdec.cpp b/core/ambdec.cpp
index f98e1098..fb747fdf 100644
--- a/core/ambdec.cpp
+++ b/core/ambdec.cpp
@@ -42,8 +42,8 @@ enum class ReaderScope {
HFMatrix,
};
-#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
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
diff --git a/core/logging.h b/core/logging.h
index 06b7cdde..a8d9b731 100644
--- a/core/logging.h
+++ b/core/logging.h
@@ -22,8 +22,8 @@ using LogCallbackFunc = void(*)(void *userptr, char level, const char *message,
void al_set_log_callback(LogCallbackFunc callback, void *userptr);
-#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