remove _TIMESPEC_DEFINED
This commit is contained in:
parent
82f2d8e53d
commit
1627597fcc
|
@ -18,14 +18,6 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Skip define timespec for IAR version over 8.10.1 where __VER__ is 8010001.
|
|
||||||
*/
|
|
||||||
#if defined ( __ICCARM__ ) && (__VER__ >= 8010001)
|
|
||||||
#define _TIMESPEC_DEFINED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _TIMEVAL_DEFINED
|
#ifndef _TIMEVAL_DEFINED
|
||||||
#define _TIMEVAL_DEFINED
|
#define _TIMEVAL_DEFINED
|
||||||
/*
|
/*
|
||||||
|
@ -40,7 +32,7 @@ struct timeval {
|
||||||
#endif
|
#endif
|
||||||
#endif /* _TIMEVAL_DEFINED */
|
#endif /* _TIMEVAL_DEFINED */
|
||||||
|
|
||||||
#if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)/*GCC*/) && !defined (__ICCARM__) && !defined (_WIN32)
|
#if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)/*GCC*/) && !(defined(__ICCARM__) && (__VER__ >= 8010001)) && !defined(_WIN32)
|
||||||
struct timespec {
|
struct timespec {
|
||||||
time_t tv_sec; /* seconds */
|
time_t tv_sec; /* seconds */
|
||||||
long tv_nsec; /* and nanoseconds */
|
long tv_nsec; /* and nanoseconds */
|
||||||
|
|
Loading…
Reference in New Issue