Fix compiler error.

Change-Id: Iaa0ecd02e8c25ec1ebdd67a09e8b4ca961375318
This commit is contained in:
YOUR_NAME 2021-03-22 16:41:28 +08:00
parent 34c82ccd64
commit 64895f8c3d
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ extern "C" {
#endif
#define __NEED_pthread_attr_t
#define __NEED_time_t
#include <bits/alltypes.h>

View File

@ -3,6 +3,10 @@
#ifdef __ICCARM__ /* for iar */
#if !defined(_DLIB_TIME_USES_64) || !defined(_DLIB_TIME_USES_LONG) || (_DLIB_TIME_USES_64 == 0) || (_DLIB_TIME_USES_LONG == 0)
#error "_DLIB_TIME_USES_64=1 and _DLIB_TIME_USES_LONG=1 should be defined in IAR project(C/C++ Compiler->Preprocessor->Defined symbols)."
#endif
#ifndef tm_isdst
#define tm_isdst tm_isdst; \
long __tm_gmtoff; \