mirror of https://github.com/l4ka/pistachio.git
Only compile L4_HasFeature when using c++.
This commit is contained in:
parent
b43e3b1023
commit
f3e198a3c3
|
@ -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
|
* File path: l4/kip.h
|
||||||
* Description: Kernel interface page definitions.
|
* Description: Kernel interface page definitions.
|
||||||
|
@ -552,7 +552,7 @@ L4_INLINE char * L4_Feature (void * KernelInterface, L4_Word_t num)
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
#if defined(__cplusplus)
|
||||||
L4_INLINE L4_Bool_t L4_HasFeature (const char *feature_name)
|
L4_INLINE L4_Bool_t L4_HasFeature (const char *feature_name)
|
||||||
{
|
{
|
||||||
void *kip = L4_GetKernelInterface();
|
void *kip = L4_GetKernelInterface();
|
||||||
|
@ -571,7 +571,7 @@ L4_INLINE L4_Bool_t L4_HasFeature (const char *feature_name)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
L4_Word_t raw[2];
|
L4_Word_t raw[2];
|
||||||
|
|
Loading…
Reference in New Issue