libc/err: Add _func suffix to avoid the the penitential symbol collision

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-08-08 02:22:10 +08:00 committed by David Sidrane
parent e26d8759d0
commit 16d858f3ee
1 changed files with 16 additions and 0 deletions

View File

@ -28,6 +28,22 @@
#include <stdarg.h>
#include <nuttx/compiler.h>
/****************************************************************************
* 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
****************************************************************************/