chore: sdk compiles almost w/o warnings?

This commit is contained in:
2024-12-17 03:13:08 +06:00
parent 31efbc726f
commit 7c7b36a6b3
55 changed files with 658 additions and 514 deletions

View File

@@ -166,6 +166,7 @@ extern void vPortFree( void *pv );
#include "strproc.h"
#include "memproc.h"
#include "basic_types.h"
#include "rand.h"
#if USE_RTL_ROM_CLIB
#include "rtl_lib.h"
#include "rom_libc_string.h"
@@ -200,10 +201,10 @@ extern void vPortFree( void *pv );
#define printf buffered_printf
#else
#define printf rtl_printf
#endif
#define sprintf rtl_sprintf
#define snprintf rtl_snprintf
#define vsnprintf rtl_vsnprintf
#endif
#else
#define printf DiagPrintf
#define sprintf(fmt, arg...) DiagSPrintf((u8*)fmt, ##arg)
@@ -233,7 +234,9 @@ extern void vPortFree( void *pv );
#define atoi(str) prvAtoi(str)
#define strpbrk(cs, ct) _strpbrk(cs, ct) // for B-cut ROM
#if defined (__GNUC__)
#undef sscanf
// #undef sscanf
// #define sscanf _sscanf_patch
extern int _sscanf_patch(const char *s, const char *template, ...);
#define sscanf _sscanf_patch
#define rand Rand
#endif