mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-22 04:35:24 +08:00
[components/libc] Remove #if defined(RT_USING_RTC) on time.c.
This commit is contained in:
parent
25e709eefb
commit
201d2830e6
@ -1,7 +1,7 @@
|
|||||||
#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;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#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;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user