xref: /interface/sdk_c/third_party/musl/ndk_musl_include/stddef.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /interface/sdk_c/third_party/musl/ndk_musl_include/
17777dab0Sopenharmony_ci#ifndef _STDDEF_H
27777dab0Sopenharmony_ci#define _STDDEF_H
37777dab0Sopenharmony_ci
47777dab0Sopenharmony_ci#ifdef __cplusplus
57777dab0Sopenharmony_ci#define NULL 0L
67777dab0Sopenharmony_ci#else
77777dab0Sopenharmony_ci#define NULL ((void*)0)
87777dab0Sopenharmony_ci#endif
97777dab0Sopenharmony_ci
107777dab0Sopenharmony_ci#define __NEED_ptrdiff_t
117777dab0Sopenharmony_ci#define __NEED_size_t
127777dab0Sopenharmony_ci#define __NEED_wchar_t
137777dab0Sopenharmony_ci#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
147777dab0Sopenharmony_ci#define __NEED_max_align_t
157777dab0Sopenharmony_ci#endif
167777dab0Sopenharmony_ci
177777dab0Sopenharmony_ci#include <bits/alltypes.h>
187777dab0Sopenharmony_ci
197777dab0Sopenharmony_ci#if __GNUC__ > 3
207777dab0Sopenharmony_ci#define offsetof(type, member) __builtin_offsetof(type, member)
217777dab0Sopenharmony_ci#else
227777dab0Sopenharmony_ci#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))
237777dab0Sopenharmony_ci#endif
247777dab0Sopenharmony_ci
257777dab0Sopenharmony_ci#endif
26

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