X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-usertrace%2Fltt%2Fkernelutils-x86_64.h;h=4141bd11f54009f84429482fd1297d8082ecb08f;hb=b05be313aa1f3aee62190c30b7191918d3296e73;hp=4f2ec2f7e2444352afa780f7d63df42a00a36b80;hpb=4b18c4a6b6c014a11c6e316df0c6e2b8119810dd;p=lttv.git diff --git a/ltt-usertrace/ltt/kernelutils-x86_64.h b/ltt-usertrace/ltt/kernelutils-x86_64.h index 4f2ec2f7..4141bd11 100644 --- a/ltt-usertrace/ltt/kernelutils-x86_64.h +++ b/ltt-usertrace/ltt/kernelutils-x86_64.h @@ -12,6 +12,10 @@ #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