diff options
author | Glenn Elliott <gelliott@koruna.cs.unc.edu> | 2010-02-22 09:28:48 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@koruna.cs.unc.edu> | 2010-02-22 09:28:48 -0500 |
commit | 8026e36c2901691bde793f85f7a0f8ca6e9c44dc (patch) | |
tree | cf158323faf4b41ca70e5646a7550d96b46cade9 | |
parent | 8a1912c177e978574250cf80f8a50edf7424b158 (diff) |
Added protections to litmus.h to prevent name mangling when used
in C++ code.
-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 |