Skip to content

Commit ec4e8cb

Browse files
committed
[4.0.x] add weak symbol to rt_vsnprintf
1 parent 5c838db commit ec4e8cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/kservice.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ RTM_EXPORT(_rt_errno);
127127
*
128128
* @return The address of source memory.
129129
*/
130-
RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count)
130+
void *rt_memset(void *s, int c, rt_ubase_t count)
131131
{
132132
#ifdef RT_KSERVICE_USING_TINY_SIZE
133133
char *xs = (char *)s;
@@ -338,7 +338,7 @@ RTM_EXPORT(rt_memmove);
338338
* If the result > 0, cs is greater than ct.
339339
* If the result = 0, cs is equal to ct.
340340
*/
341-
RT_WEAK rt_int32_t rt_memcmp(const void *cs, const void *ct, rt_ubase_t count)
341+
rt_int32_t rt_memcmp(const void *cs, const void *ct, rt_ubase_t count)
342342
{
343343
const unsigned char *su1, *su2;
344344
int res = 0;
@@ -842,7 +842,7 @@ static char *print_number(char *buf,
842842
*
843843
* @return The number of characters actually written to buffer.
844844
*/
845-
rt_int32_t rt_vsnprintf(char *buf,
845+
RT_WEAK rt_int32_t rt_vsnprintf(char *buf,
846846
rt_size_t size,
847847
const char *fmt,
848848
va_list args)

0 commit comments

Comments
 (0)