summaryrefslogtreecommitdiff
path: root/components/libc/time
diff options
context:
space:
mode:
authorWBI\nxf44444 <[email protected]>2020-10-26 14:58:46 +0800
committerWBI\nxf44444 <[email protected]>2020-10-26 14:58:46 +0800
commit102976e89f2d5f004dbad25ad42a0dc659294ed2 (patch)
tree0d9da35d5b46a075a5ddc36d732a66e8a080b5ce /components/libc/time
parent6bc3301e0880703b7889d69f262f7e633c951737 (diff)
parent877921f10bd2904c8e683f0df7a4d2596e3e64ba (diff)
note
Diffstat (limited to 'components/libc/time')
-rw-r--r--components/libc/time/clock_time.h8
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