From 8026e36c2901691bde793f85f7a0f8ca6e9c44dc Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Mon, 22 Feb 2010 09:28:48 -0500 Subject: Added protections to litmus.h to prevent name mangling when used in C++ code. --- include/litmus.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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 @@ #ifndef LITMUS_H #define LITMUS_H +#ifdef __cplusplus +extern "C" { +#endif + /* Include kernel header. * This is required for the rt_param * and control_page structures. @@ -115,4 +119,7 @@ static inline int open_srp_sem(int fd, int name) /* syscall overhead measuring */ int null_call(cycles_t *timestamp); +#ifdef __cplusplus +} +#endif #endif -- cgit v1.2.2