From f3e198a3c3f877ffdb7f63e9310888551ef70f78 Mon Sep 17 00:00:00 2001 From: Jan Stoess Date: Tue, 26 Apr 2011 14:19:12 +0200 Subject: [PATCH] Only compile L4_HasFeature when using c++. --- user/include/l4/kip.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/include/l4/kip.h b/user/include/l4/kip.h index 4ea2abd4..63e5b62b 100644 --- a/user/include/l4/kip.h +++ b/user/include/l4/kip.h @@ -1,6 +1,6 @@ /********************************************************************* * - * Copyright (C) 2001-2004, 2006-2007, 2010, Karlsruhe University + * Copyright (C) 2001-2004, 2006-2007, 2010-2011, Karlsruhe University * * File path: l4/kip.h * Description: Kernel interface page definitions. @@ -552,7 +552,7 @@ L4_INLINE char * L4_Feature (void * KernelInterface, L4_Word_t num) return str; } - +#if defined(__cplusplus) L4_INLINE L4_Bool_t L4_HasFeature (const char *feature_name) { void *kip = L4_GetKernelInterface(); @@ -571,7 +571,7 @@ L4_INLINE L4_Bool_t L4_HasFeature (const char *feature_name) } return false; } - +#endif typedef union { L4_Word_t raw[2];