update usertrade to support g++
[lttv.git] / ltt-usertrace / ltt / kernelutils-x86_64.h
index 4f2ec2f7e2444352afa780f7d63df42a00a36b80..4141bd11f54009f84429482fd1297d8082ecb08f 100644 (file)
 #ifndef _KERNELUTILS_X86_64_H
 #define _KERNELUTILS_X86_64_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 // We are careful, so we assume a possibly SMP machine
 #define LOCK "lock ; "
 #define LOCK_PREFIX "lock ; "
@@ -164,5 +168,8 @@ static inline cycles_t get_cycles (void)
        return ret;
 }
 
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
 
 #endif // _KERNELUTILS_X86_64_H
This page took 0.022569 seconds and 4 git commands to generate.