瀏覽代碼

Merge pull request #1899 from hichard/master

修复iar dlib时间映射函数的函数声明,适应不同版本的iar
Bernard Xiong 7 年之前
父節點
當前提交
9c255e7d2f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/libc/compilers/dlib/time.c

+ 2 - 2
components/libc/compilers/dlib/time.c

@@ -42,9 +42,9 @@ int gettimeofday(struct timeval *tp, void *ignore)
  */
  */
 #pragma module_name = "?time"
 #pragma module_name = "?time"
 #if _DLIB_TIME_ALLOW_64
 #if _DLIB_TIME_ALLOW_64
-time_t __time64(time_t *t)
+__time64_t __time64(__time64_t *t)
 #else
 #else
-time_t __time32(time_t *t)
+__time32_t __time32(__time32_t *t)
 #endif
 #endif
 {
 {
   time_t time_now = 0;
   time_t time_now = 0;