libc/crc: Add full 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-14 16:59:35 +08:00 committed by Petro Karashchenko
parent 767ab06ecd
commit 3b0516f6a2
4 changed files with 32 additions and 0 deletions

View File

@ -28,6 +28,14 @@
#include <sys/types.h>
#include <stdint.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Append full suffix to avoid the penitential symbol collision */
#define crc16 crc16full
/****************************************************************************
* Public Function Prototypes
****************************************************************************/

View File

@ -28,6 +28,14 @@
#include <sys/types.h>
#include <stdint.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Append full suffix to avoid the penitential symbol collision */
#define crc32 crc32full
/****************************************************************************
* Public Function Prototypes
****************************************************************************/

View File

@ -32,6 +32,14 @@
#ifdef CONFIG_HAVE_LONG_LONG
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Append full suffix to avoid the penitential symbol collision */
#define crc64 crc64full
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View File

@ -28,6 +28,14 @@
#include <sys/types.h>
#include <stdint.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Append full suffix to avoid the penitential symbol collision */
#define crc8 crc8full
/****************************************************************************
* Public Function Prototypes
****************************************************************************/