1#ifndef __SIMPLE_LIBC_STDDEF_H__
2#define __SIMPLE_LIBC_STDDEF_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
7# include "../sys/types.h"
18#define VSF_LINUX_LIBC_WRAPPER(__api) VSF_SHELL_WRAPPER(vsf_linux_libc, __api)
22#if !defined(__cplusplus)
25# if defined(__WCHAR_TYPE__)
27# elif defined(__WIN__)
29# elif __IS_COMPILER_GCC__ || __IS_COMPILER_LLVM__
31# elif __IS_COMPILER_IAR__
32# if !defined(__ARM_SIZEOF_WCHAR_T)
35# elif __ARM_SIZEOF_WCHAR_T == 2
37# elif __ARM_SIZEOF_WCHAR_T == 4
40# error __ARM_SIZEOF_WCHAR_T not supported
47typedef __WINT_TYPE__
wint_t;
51#if __IS_COMPILER_IAR__
59# define NULL ((void *)0)
77# if __IS_COMPILER_GCC__ || __IS_COMPILER_LLVM__
78# define offsetof(__type, __member) __builtin_offsetof(__type, __member)
80# define offsetof(__type, __member) (uintptr_t)(&(((__type *)0)->__member))
85#if __IS_COMPILER_GCC__
87 long long __clang_max_align_nonce1
89 long double __clang_max_align_nonce2
92#elif __IS_COMPILER_LLVM__
95# elif defined(__MACOS__)
99 long long __clang_max_align_nonce1
101 long double __clang_max_align_nonce2
109#if __IS_COMPILER_IAR__
110typedef void *nullptr_t;
113#if defined(__PTRDIFF_TYPE__)
115#elif defined(__WIN__)
116# if defined(__CPU_X86__)
117typedef unsigned int size_t;
121# elif defined(__CPU_X64__)
122typedef unsigned __int64
size_t;
136 typedef decltype(__nullptr) nullptr_t;
139using ::std::nullptr_t;
__attribute__((weak))
Definition handlers.c:10
long int ptrdiff_t
Definition stddef.h:128
long double max_align_t
Definition stddef.h:106
unsigned short wchar_t
Definition stddef.h:43
unsigned short wint_t
Definition stddef.h:49
unsigned int size_t
Definition types.h:51
Definition vsf_linux_glibcpp.cc:8
uint32_t uintptr_t
Definition stdint.h:38
int32_t intptr_t
Definition stdint.h:39