source: EcnlProtoTool/trunk/musl-1.1.18/include/stddef.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr
File size: 491 bytes
Line 
1#ifndef _STDDEF_H
2#define _STDDEF_H
3
4#ifdef __cplusplus
5#define NULL 0L
6#else
7#define NULL ((void*)0)
8#endif
9
10#define __NEED_ptrdiff_t
11#define __NEED_size_t
12#define __NEED_wchar_t
13#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
14#define __NEED_max_align_t
15#endif
16
17#include <bits/alltypes.h>
18
19#if __GNUC__ > 3
20#define offsetof(type, member) __builtin_offsetof(type, member)
21#else
22#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 ))
23#endif
24
25#endif
Note: See TracBrowser for help on using the repository browser.