Merge pull request #1854 from RT-Thread/fix_libc_EXFUN

[libc] Add _EXFUN judgement
This commit is contained in:
Bernard Xiong 2018-09-30 10:12:22 +08:00 committed by GitHub
commit e9b6db768f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -26,8 +26,15 @@
#ifndef __RTT_LIBC_H__
#define __RTT_LIBC_H__
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <sys/time.h>
#ifndef _EXFUN
#define _EXFUN(name, proto) name proto
#endif
#define MILLISECOND_PER_SECOND 1000UL
#define MICROSECOND_PER_SECOND 1000000UL
#define NANOSECOND_PER_SECOND 1000000000UL