util: Remove va_copy fixup because of c11 is required
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19646>
This commit is contained in:
@@ -77,15 +77,6 @@ typedef unsigned char boolean;
|
|||||||
#define FALSE false
|
#define FALSE false
|
||||||
#endif
|
#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 */
|
/* XXX: Use standard `__func__` instead */
|
||||||
#ifndef __FUNCTION__
|
#ifndef __FUNCTION__
|
||||||
# define __FUNCTION__ __func__
|
# define __FUNCTION__ __func__
|
||||||
|
@@ -38,14 +38,6 @@
|
|||||||
_CRTIMP int _vscprintf(const char *format, va_list argptr);
|
_CRTIMP int _vscprintf(const char *format, va_list argptr);
|
||||||
#endif
|
#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*
|
static const char*
|
||||||
util_printf_prev_tok(const char *str)
|
util_printf_prev_tok(const char *str)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user