libc: Implement local_t related functions

since local_t isn't really implemented on NuttX,
we can simply redirect to the non-locale version.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-07-28 22:44:44 +08:00
committed by Gustavo Henrique Nihei
parent decf7d0ad9
commit cdc781bdfd
7 changed files with 67 additions and 2 deletions
+8
View File
@@ -35,6 +35,14 @@
#include <nuttx/b2c.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define strcoll_l(s1, s2, l) strcoll(s1, s2)
#define strerror_l(e, l) strerror(e)
#define strxfrm_l(s1, s2, n, l) strxfrm(s1, s2, n)
/****************************************************************************
* Public Function Prototypes
****************************************************************************/