mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
libc/time: add lib_strptime
The community deleted strptime due to license reasons, and we replaced it with musl. Signed-off-by: chenjiahua1 <chenjiahua1@xiaomi.com>
This commit is contained in:
@@ -44,4 +44,8 @@ else()
|
||||
list(APPEND SRCS lib_timegm.c lib_gmtime.c lib_gmtimer.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ALLOW_MIT_COMPONENTS)
|
||||
list(APPEND SRCS lib_strptime.c)
|
||||
endif()
|
||||
|
||||
target_sources(c PRIVATE ${SRCS})
|
||||
|
||||
@@ -34,6 +34,10 @@ else
|
||||
CSRCS += lib_timegm.c lib_gmtime.c lib_gmtimer.c
|
||||
endif
|
||||
|
||||
ifdef CONFIG_ALLOW_MIT_COMPONENTS
|
||||
CSRCS += lib_strptime.c
|
||||
endif
|
||||
|
||||
# Add the time directory to the build
|
||||
|
||||
DEPPATH += --dep-path time
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user