soc/intel/xeon_sp: Revise IIO domain ACPI name encoding
[coreboot2.git] / payloads / libpayload / include / stddef.h
blob81aaa17cb81a77c20c1ca5cc49c2d24611a87f49
1 #ifndef _STDDEF_H
2 #define _STDDEF_H
4 #include <arch/types.h>
6 #if !defined(offsetof)
7 #define offsetof(type, member) __builtin_offsetof(type, member)
8 #endif
10 #ifndef __WCHAR_TYPE__
11 #define __WCHAR_TYPE__ int
12 #endif
13 #ifndef __cplusplus
14 typedef __WCHAR_TYPE__ wchar_t;
15 #endif
17 #ifndef __SIZE_TYPE__
18 #define __SIZE_TYPE__ unsigned long
19 #endif
20 typedef __SIZE_TYPE__ size_t;
21 /* There is a GCC macro for a size_t type, but not
22 * for a ssize_t type. Below construct tricks GCC
23 * into making __SIZE_TYPE__ signed.
25 #define unsigned signed
26 typedef __SIZE_TYPE__ ssize_t;
27 #undef unsigned
29 #endif