aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@koruna.cs.unc.edu>2010-02-22 09:28:48 -0500
committerGlenn Elliott <gelliott@koruna.cs.unc.edu>2010-02-22 09:28:48 -0500
commit8026e36c2901691bde793f85f7a0f8ca6e9c44dc (patch)
treecf158323faf4b41ca70e5646a7550d96b46cade9
parent8a1912c177e978574250cf80f8a50edf7424b158 (diff)
Added protections to litmus.h to prevent name mangling when used
in C++ code.
-rw-r--r--include/litmus.h7
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
5extern "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 */
116int null_call(cycles_t *timestamp); 120int null_call(cycles_t *timestamp);
117 121
122#ifdef __cplusplus
123}
124#endif
118#endif 125#endif