Try fixing a compatibility issue with old GCC.

This is untested.
This commit is contained in:
David Reid
2025-04-27 19:22:20 +10:00
parent 4c2d1bb67c
commit caa3d2a339
+4
View File
@@ -13477,7 +13477,11 @@ Logging
**************************************************************************************************************************************************************/
#ifndef ma_va_copy
#if !defined(_MSC_VER) || _MSC_VER >= 1800
#if (defined(__GNUC__) && __GNUC__ < 3)
#define ma_va_copy(dst, src) ((dst) = (src)) /* This is untested. Not sure if this is correct for old GCC. */
#else
#define ma_va_copy(dst, src) va_copy((dst), (src))
#endif
#else
#define ma_va_copy(dst, src) ((dst) = (src))
#endif