diff options
Diffstat (limited to 'src/include/sleep.h')
-rw-r--r-- | src/include/sleep.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/include/sleep.h b/src/include/sleep.h index 265500908..e3fa2ffda 100644 --- a/src/include/sleep.h +++ b/src/include/sleep.h @@ -25,18 +25,19 @@ #ifndef _SLEEP_H_
#define _SLEEP_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
#ifdef CH_USE_SLEEP
-
-void chThdSleep(t_time time);
-
+ void chThdSleep(t_time time);
#ifdef CH_USE_SYSTEMTIME
-
-void chThdSleepUntil(t_time time);
-t_time chSysGetTime(void);
-
+ void chThdSleepUntil(t_time time);
+ t_time chSysGetTime(void);
#endif /* CH_USE_SYSTEMTIME */
-
#endif /* CH_USE_SLEEP */
+#ifdef __cplusplus
+}
+#endif
#endif /* _SLEEP_H_ */
|