source: EcnlProtoTool/trunk/tcc-0.9.27/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;charset=UTF-8
File size: 1.4 KB
Line 
1#ifndef _STDDEF_H
2#define _STDDEF_H
3
4typedef __SIZE_TYPE__ size_t;
5typedef __PTRDIFF_TYPE__ ssize_t;
6typedef __WCHAR_TYPE__ wchar_t;
7typedef __PTRDIFF_TYPE__ ptrdiff_t;
8typedef __PTRDIFF_TYPE__ intptr_t;
9typedef __SIZE_TYPE__ uintptr_t;
10
11#ifndef __int8_t_defined
12#define __int8_t_defined
13typedef signed char int8_t;
14typedef signed short int int16_t;
15typedef signed int int32_t;
16#ifdef __LP64__
17typedef signed long int int64_t;
18#else
19typedef signed long long int int64_t;
20#endif
21typedef unsigned char uint8_t;
22typedef unsigned short int uint16_t;
23typedef unsigned int uint32_t;
24#ifdef __LP64__
25typedef unsigned long int uint64_t;
26#else
27typedef unsigned long long int uint64_t;
28#endif
29#endif
30
31#ifndef NULL
32#define NULL ((void*)0)
33#endif
34
35#define offsetof(type, field) ((size_t)&((type *)0)->field)
36
37void *alloca(size_t size);
38
39#endif
40
41/* Older glibc require a wint_t from <stddef.h> (when requested
42 by __need_wint_t, as otherwise stddef.h isn't allowed to
43 define this type). Note that this must be outside the normal
44 _STDDEF_H guard, so that it works even when we've included the file
45 already (without requiring wint_t). Some other libs define _WINT_T
46 if they've already provided that type, so we can use that as guard.
47 TCC defines __WINT_TYPE__ for us. */
48#if defined (__need_wint_t)
49#ifndef _WINT_T
50#define _WINT_T
51typedef __WINT_TYPE__ wint_t;
52#endif
53#undef __need_wint_t
54#endif
Note: See TracBrowser for help on using the repository browser.