File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 16
16
* 2018-11-22 Jesven add all cpu's lock and ipi handler
17
17
* 2021-02-28 Meco Man add RT_KSERVICE_USING_STDLIB
18
18
* 2021-11-14 Meco Man add rtlegacy.h for compatibility
19
+ * 2022-06-04 Meco Man remove strnlen
19
20
*/
20
21
21
22
#ifndef __RT_THREAD_H__
Original file line number Diff line number Diff line change 20
20
* 2021-02-28 Meco Man add RT_KSERVICE_USING_STDLIB
21
21
* 2021-12-20 Meco Man implement rt_strcpy()
22
22
* 2022-01-07 Gabriel add __on_rt_assert_hook
23
+ * 2022-06-04 Meco Man remove strnlen
23
24
*/
24
25
25
26
#include <rtthread.h>
@@ -553,7 +554,6 @@ RTM_EXPORT(rt_strlen);
553
554
554
555
#endif /* RT_KSERVICE_USING_STDLIB */
555
556
556
- #if !defined(RT_KSERVICE_USING_STDLIB ) || defined(__ARMCC_VERSION )
557
557
/**
558
558
* The strnlen() function returns the number of characters in the
559
559
* string pointed to by s, excluding the terminating null byte ('\0'),
@@ -577,10 +577,6 @@ rt_size_t rt_strnlen(const char *s, rt_ubase_t maxlen)
577
577
return sc - s ;
578
578
}
579
579
RTM_EXPORT (rt_strnlen );
580
- #ifdef __ARMCC_VERSION
581
- rt_size_t strnlen (const char * s , rt_size_t maxlen ) __attribute__((alias ("rt_strnlen" )));
582
- #endif /* __ARMCC_VERSION */
583
- #endif /* !defined(RT_KSERVICE_USING_STDLIB) || defined(__ARMCC_VERSION) */
584
580
585
581
#ifdef RT_USING_HEAP
586
582
/**
@@ -603,9 +599,6 @@ char *rt_strdup(const char *s)
603
599
return tmp ;
604
600
}
605
601
RTM_EXPORT (rt_strdup );
606
- #ifdef __ARMCC_VERSION
607
- char * strdup (const char * s ) __attribute__((alias ("rt_strdup" )));
608
- #endif /* __ARMCC_VERSION */
609
602
#endif /* RT_USING_HEAP */
610
603
611
604
/**
You can’t perform that action at this time.
0 commit comments