diff --git a/extern/poshlib/posh.h b/extern/poshlib/posh.h index 716607d..6cfb6c8 100644 --- a/extern/poshlib/posh.h +++ b/extern/poshlib/posh.h @@ -87,6 +87,7 @@ GNU GCC/G++: - m68000: 68K - m68k: 68K - __palmos__: PalmOS + - __e2k__: on MCST Elbrus 2000 processor platforms Intel C/C++ Compiler: - __ECC : compiler version, IA64 only @@ -206,6 +207,11 @@ Metrowerks: LLVM: - __llvm__ - __clang__ + +LCC predefines the following: + - __LCC__: + if also defined e2k it is MCST eLbrus C Compiler + else it is Local (or Little) C Compiler */ /* @@ -549,6 +555,11 @@ LLVM: # define POSH_CPU_STRING "PA-RISC" #endif +#if defined __e2k__ +# define POSH_CPU_E2K 1 +# define POSH_CPU_STRING "MCST Elbrus 2000" +#endif + #if !defined POSH_CPU_STRING # error POSH cannot determine target CPU # define POSH_CPU_STRING "Unknown" /* this is here for Doxygen's benefit */ @@ -686,7 +697,7 @@ LLVM: ** the MIPS series, so we have to be careful about those. ** ---------------------------------------------------------------------------- */ -#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__ || defined __ORDER_LITTLE_ENDIAN__ +#if defined POSH_CPU_X86 || defined POSH_CPU_AXP || defined POSH_CPU_STRONGARM || defined POSH_CPU_AARCH64 || defined POSH_OS_WIN32 || defined POSH_OS_WINCE || defined __MIPSEL__ || defined __ORDER_LITTLE_ENDIAN__ || defined POSH_CPU_E2K # define POSH_ENDIAN_STRING "little" # define POSH_LITTLE_ENDIAN 1 #else @@ -714,7 +725,7 @@ LLVM: ** for 64-bit support, we ignore the POSH_USE_LIMITS_H directive. ** ---------------------------------------------------------------------------- */ -#if defined ( __LP64__ ) || defined ( __powerpc64__ ) || defined POSH_CPU_SPARC64 +#if defined ( __LP64__ ) || defined ( __powerpc64__ ) || defined POSH_CPU_SPARC64 || defined POSH_CPU_E2K # define POSH_64BIT_INTEGER 1 typedef long posh_i64_t; typedef unsigned long posh_u64_t; @@ -883,7 +894,7 @@ POSH_COMPILE_TIME_ASSERT(posh_i32_t, sizeof(posh_i32_t) == 4); # define POSH_64BIT_POINTER 1 #endif -#if defined POSH_CPU_SPARC64 || defined POSH_OS_WIN64 || defined __64BIT__ || defined __LP64 || defined _LP64 || defined __LP64__ || defined _ADDR64 || defined _CRAYC +#if defined POSH_CPU_SPARC64 || defined POSH_OS_WIN64 || defined __64BIT__ || defined __LP64 || defined _LP64 || defined __LP64__ || defined _ADDR64 || defined _CRAYC || defined POSH_CPU_E2K # define POSH_64BIT_POINTER 1 #endif