mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Fix a compatibility error with va_copy().
This commit is contained in:
+6
-2
@@ -13256,8 +13256,12 @@ Logging
|
|||||||
**************************************************************************************************************************************************************/
|
**************************************************************************************************************************************************************/
|
||||||
#ifndef ma_va_copy
|
#ifndef ma_va_copy
|
||||||
#if !defined(_MSC_VER) || _MSC_VER >= 1800
|
#if !defined(_MSC_VER) || _MSC_VER >= 1800
|
||||||
#if (defined(__GNUC__) && __GNUC__ < 3)
|
#if !defined(__STDC_VERSION__) || (defined(__GNUC__) && __GNUC__ < 3) /* <-- va_copy() is not available when using `-std=c89`. The `!defined(__STDC_VERSION__)` parts is what checks for this. */
|
||||||
#define ma_va_copy(dst, src) ((dst) = (src)) /* This is untested. Not sure if this is correct for old GCC. */
|
#if defined(__va_copy)
|
||||||
|
#define ma_va_copy(dst, src) __va_copy(dst, src)
|
||||||
|
#else
|
||||||
|
#define ma_va_copy(dst, src) ((dst) = (src)) /* This is untested. Not sure if this is correct for old GCC. */
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define ma_va_copy(dst, src) va_copy((dst), (src))
|
#define ma_va_copy(dst, src) va_copy((dst), (src))
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user