From: Kevin Day Date: Sat, 26 Feb 2022 16:48:16 +0000 (-0600) Subject: Update: Help ensure va_copy() is defined. X-Git-Tag: 0.5.8~6 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=e6a12f3d287ce1f02cca902dad3b07fd3454602e;p=fll Update: Help ensure va_copy() is defined. --- 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.