From 605ebc32eeb38dfbc6aa2ba50ef4ba4c70c8970a Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 10 Nov 2022 16:26:09 +0800 Subject: [PATCH] util: Remove va_copy fixup because of c11 is required Signed-off-by: Yonggang Luo Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/include/pipe/p_compiler.h | 9 --------- src/util/u_printf.c | 8 -------- 2 files changed, 17 deletions(-) diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h index 86dab57b196..8f16db7bd17 100644 --- a/src/gallium/include/pipe/p_compiler.h +++ b/src/gallium/include/pipe/p_compiler.h @@ -77,15 +77,6 @@ typedef unsigned char boolean; #define FALSE false #endif -#ifndef va_copy -#ifdef __va_copy -#define va_copy(dest, src) __va_copy((dest), (src)) -#else -#define va_copy(dest, src) (dest) = (src) -#endif -#endif - - /* XXX: Use standard `__func__` instead */ #ifndef __FUNCTION__ # define __FUNCTION__ __func__ diff --git a/src/util/u_printf.c b/src/util/u_printf.c index b4ea39d86e3..c9c8053f2c9 100644 --- a/src/util/u_printf.c +++ b/src/util/u_printf.c @@ -38,14 +38,6 @@ _CRTIMP int _vscprintf(const char *format, va_list argptr); #endif -#ifndef va_copy -#ifdef __va_copy -#define va_copy(dest, src) __va_copy((dest), (src)) -#else -#define va_copy(dest, src) (dest) = (src) -#endif -#endif - static const char* util_printf_prev_tok(const char *str) {