提交 201d2830 编写于 作者: armink_ztl's avatar armink_ztl

[components/libc] Remove #if defined(RT_USING_RTC) on time.c.

上级 25e709ee
#include <sys/time.h> #include <sys/time.h>
#include <rtthread.h> #include <rtthread.h>
#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC) #ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore) int gettimeofday(struct timeval *tp, void *ignore)
{ {
time_t time; time_t time;
......
#include <sys/time.h> #include <sys/time.h>
#include <rtthread.h> #include <rtthread.h>
#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC) #ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore) int gettimeofday(struct timeval *tp, void *ignore)
{ {
time_t time; time_t time;
......
#include <sys/time.h> #include <sys/time.h>
#include <rtthread.h> #include <rtthread.h>
#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC) #ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore) int gettimeofday(struct timeval *tp, void *ignore)
{ {
time_t time; time_t time;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册