diff --git a/tools/lkl/include/lkl.h b/tools/lkl/include/lkl.h index 080cea33d24874..88daa6b674c2cd 100644 --- a/tools/lkl/include/lkl.h +++ b/tools/lkl/include/lkl.h @@ -7,7 +7,13 @@ extern "C" { #define _LKL_LIBC_COMPAT_H +#ifdef __cplusplus +#define class __lkl__class +#endif #include +#ifdef __cplusplus +#undef class __lkl__class +#endif #if __LKL__BITS_PER_LONG == 64 #define lkl_sys_stat lkl_sys_newstat