diff options
-rw-r--r-- | include/litmus.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/litmus.h b/include/litmus.h index 71bcd1a..f8764cc 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -1,6 +1,10 @@ | |||
1 | #ifndef LITMUS_H | 1 | #ifndef LITMUS_H |
2 | #define LITMUS_H | 2 | #define LITMUS_H |
3 | 3 | ||
4 | #ifdef __cplusplus | ||
5 | extern "C" { | ||
6 | #endif | ||
7 | |||
4 | /* Include kernel header. | 8 | /* Include kernel header. |
5 | * This is required for the rt_param | 9 | * This is required for the rt_param |
6 | * and control_page structures. | 10 | * and control_page structures. |
@@ -115,4 +119,7 @@ static inline int open_srp_sem(int fd, int name) | |||
115 | /* syscall overhead measuring */ | 119 | /* syscall overhead measuring */ |
116 | int null_call(cycles_t *timestamp); | 120 | int null_call(cycles_t *timestamp); |
117 | 121 | ||
122 | #ifdef __cplusplus | ||
123 | } | ||
124 | #endif | ||
118 | #endif | 125 | #endif |