1 #include <stdint.h> 2 #include <unistd.h> 3 4 5 #define FICL_WANT_PLATFORM (1) 6 7 #define FICL_PLATFORM_OS "unix" 8 #define FICL_PLATFORM_ARCHITECTURE "unknown" 9 10 #define FICL_PLATFORM_BASIC_TYPES (1) 11 #if defined(__amd64__) 12 #define FICL_PLATFORM_ALIGNMENT (8) 13 #else 14 #define FICL_PLATFORM_ALIGNMENT (4) 15 #endif 16 #define FICL_PLATFORM_INLINE static inline 17 18 #define FICL_PLATFORM_HAS_FTRUNCATE (1) 19 #if defined(__amd64__) 20 #define FICL_PLATFORM_HAS_2INTEGER (0) 21 #else 22 #define FICL_PLATFORM_HAS_2INTEGER (1) 23 #endif 24 25 typedef int8_t ficlInteger8; 26 typedef uint8_t ficlUnsigned8; 27 typedef int16_t ficlInteger16; 28 typedef uint16_t ficlUnsigned16; 29 typedef int32_t ficlInteger32; 30 typedef uint32_t ficlUnsigned32; 31 typedef int64_t ficlInteger64; 32 typedef uint64_t ficlUnsigned64; 33 34 #if defined(__amd64__) 35 typedef ficlInteger64 ficlInteger; 36 typedef ficlUnsigned64 ficlUnsigned; 37 #else /* default */ 38 typedef intptr_t ficlInteger; 39 typedef uintptr_t ficlUnsigned; 40 #endif 41 typedef float ficlFloat; 42 43 #if defined(FICL_PLATFORM_HAS_2INTEGER) && FICL_PLATFORM_HAS_2INTEGER 44 typedef ficlInteger64 ficl2Integer; 45 typedef ficlUnsigned64 ficl2Unsigned; 46 #endif 47