From 16d858f3ee21f68b1e9ce8fab6ecd99525695aae Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 8 Aug 2022 02:22:10 +0800 Subject: [PATCH] libc/err: Add _func suffix to avoid the the penitential symbol collision Signed-off-by: Xiang Xiao --- include/err.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/err.h b/include/err.h index 04d0ac0569..67b297909c 100644 --- a/include/err.h +++ b/include/err.h @@ -28,6 +28,22 @@ #include #include +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/* Append _func suffix to avoid the penitential symbol collision */ + +#define warn warn_func +#define vwarn vwarn_func +#define warnx warnx_func +#define vwarnx vwarnx_func + +#define err err_func +#define verr verr_func +#define errx errx_func +#define verrx verrx_func + /**************************************************************************** * Public Function Prototypes ****************************************************************************/