From e6a12f3d287ce1f02cca902dad3b07fd3454602e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 26 Feb 2022 10:48:16 -0600 Subject: [PATCH] Update: Help ensure va_copy() is defined. --- level_0/f_print/c/print/common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/level_0/f_print/c/print/common.h b/level_0/f_print/c/print/common.h index e5788ae..7b95144 100644 --- a/level_0/f_print/c/print/common.h +++ b/level_0/f_print/c/print/common.h @@ -17,6 +17,13 @@ extern "C" { #endif /** + * Guarantee va_copy() exists when __va_copy() is provided instead. + */ +#if !defined(va_copy) && defined(__va_copy) + #define va_copy __va_copy +#endif // !defined(va_copy) && defined(__va_copy) + +/** * Defines the maximum length supported by write() for use in printing. * * This is documented in the man write(2) pages under Linux to being 0x7ffff000 regardless of 32-bit or 64-bit. -- 1.8.3.1