xref: /third_party/musl/porting/liteos_m/kernel/include/stddef.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/porting/liteos_m/kernel/include/
1570af302Sopenharmony_ci#ifndef _STDDEF_H
2570af302Sopenharmony_ci#define _STDDEF_H
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#ifdef __cplusplus
5570af302Sopenharmony_ci#define NULL 0L
6570af302Sopenharmony_ci#else
7570af302Sopenharmony_ci#define NULL ((void*)0)
8570af302Sopenharmony_ci#endif
9570af302Sopenharmony_ci
10570af302Sopenharmony_ci#define __NEED_ptrdiff_t
11570af302Sopenharmony_ci#define __NEED_size_t
12570af302Sopenharmony_ci#define __NEED_wchar_t
13570af302Sopenharmony_ci#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
14570af302Sopenharmony_ci#define __NEED_max_align_t
15570af302Sopenharmony_ci#endif
16570af302Sopenharmony_ci
17570af302Sopenharmony_ci#include <bits/alltypes.h>
18570af302Sopenharmony_ci
19570af302Sopenharmony_ci#if __GNUC__ > 3
20570af302Sopenharmony_ci#define offsetof(type, member) __builtin_offsetof(type, member)
21570af302Sopenharmony_ci#else
22570af302Sopenharmony_ci#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))
23570af302Sopenharmony_ci#endif
24570af302Sopenharmony_ci
25570af302Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024