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

This commit is contained in:
armink 2018-05-07 18:05:10 +08:00
parent 25e709eefb
commit 201d2830e6
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#include <sys/time.h>
#include <rtthread.h>
#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC)
#ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore)
{
time_t time;

View File

@ -1,7 +1,7 @@
#include <sys/time.h>
#include <rtthread.h>
#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC)
#ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore)
{
time_t time;

View File

@ -1,7 +1,7 @@
#include <sys/time.h>
#include <rtthread.h>
#if defined(RT_USING_DEVICE) && defined(RT_USING_RTC)
#ifdef RT_USING_DEVICE
int gettimeofday(struct timeval *tp, void *ignore)
{
time_t time;