diff options
| author | yangjie11 <[email protected]> | 2020-11-18 09:56:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-18 09:56:35 +0800 |
| commit | d4a682e8d97fa131e5a8d795f8c5451d55cdd5b0 (patch) | |
| tree | 4773b40cb012475c5daf74bfd55707e141477669 /components/libc/time | |
| parent | 2b98f4720c827ae1850df78299f6b273d568c8c7 (diff) | |
| parent | 2ef3c9d861f55253620996a94831a4be31ca6620 (diff) | |
Merge pull request #3 from RT-Thread/master
sync
Diffstat (limited to 'components/libc/time')
| -rw-r--r-- | components/libc/time/clock_time.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/libc/time/clock_time.h b/components/libc/time/clock_time.h index 7feb0390a4..16b2306f4b 100644 --- a/components/libc/time/clock_time.h +++ b/components/libc/time/clock_time.h @@ -11,6 +11,10 @@ #ifndef CLOCK_TIME_H__ #define CLOCK_TIME_H__ +#ifdef __cplusplus +extern "C" { +#endif + /* posix clock and timer */ #define MILLISECOND_PER_SECOND 1000UL #define MICROSECOND_PER_SECOND 1000000UL @@ -41,4 +45,8 @@ int clock_getres (clockid_t clockid, struct timespec *res); int clock_gettime (clockid_t clockid, struct timespec *tp); int clock_settime (clockid_t clockid, const struct timespec *tp); +#ifdef __cplusplus +} +#endif + #endif |
