mescc: Mes C Library: time.c: Use #if defined.
This helps resurrect the mes-0.19-based bootstrap. * lib/linux/time.c: Use #if defined () instead of plain #if for possibly undefined macros.
This commit is contained in:
parent
5bb568e455
commit
7ab9cfe864
|
@ -26,7 +26,7 @@
|
|||
/* Linux' SYS_time syscall is a compatibility shim for SYS_gettimeofday.
|
||||
Therefore, prefer SYS_gettimeofday. */
|
||||
|
||||
#if SYS_gettimeofday
|
||||
#if defined (SYS_gettimeofday)
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
|
@ -42,7 +42,7 @@ time (time_t * result)
|
|||
return tv.tv_sec;
|
||||
}
|
||||
|
||||
#elif SYS_time
|
||||
#elif defined (SYS_time)
|
||||
|
||||
time_t
|
||||
time (time_t * result)
|
||||
|
|
Loading…
Reference in a new issue