Author: nieklinnenbank Date: Wed Jul 8 15:38:14 2009 New Revision: 213 Modified: trunk/include/X86/CPU.h Log: Restricted definitions in X86/CPU.h to C++ target system only. Modified: trunk/include/X86/CPU.h ============================================================================== --- trunk/include/X86/CPU.h (original) +++ trunk/include/X86/CPU.h Wed Jul 8 15:38:14 2009 @@ -18,6 +18,8 @@ #ifndef __X86_CPU_H #define __X86_CPU_H +#include <Macros.h> + /** * @defgroup x86kernel kernel (x86) * @{ @@ -26,7 +28,7 @@ /** Intel is little endian. */ #define CPU_LITTLE_ENDIAN 1 -#ifndef __HOST__ +#if !defined(__HOST__) && defined(CPP) /** Paged Mode. */ #define CR0_PG 0x80000000 @@ -229,5 +231,5 @@ */ #endif /* __ASSEMBLER__ */ -#endif /* __HOST__ */ +#endif /* !defined(__HOST__) && !defined(CPP) */ #endif /* __X86_CPU_H */