-
Notifications
You must be signed in to change notification settings - Fork 2
/
stddef.h
38 lines (34 loc) · 1.36 KB
/
stddef.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the Public Domain */
/* */
/*********************************************************************/
/*********************************************************************/
/* */
/* stddef.h - assert header file. */
/* */
/*********************************************************************/
#ifndef __STDDEF_INCLUDED
#define __STDDEF_INCLUDED
typedef int ptrdiff_t;
#ifndef __SIZE_T_DEFINED
#define __SIZE_T_DEFINED
#if (defined(__OS2__) || defined(__32BIT__) || defined(__MVS__) \
|| defined(__CMS__))
typedef unsigned long size_t;
#elif (defined(__MSDOS__) || defined(__DOS__) || defined(__POWERC) \
|| defined(__WIN32__))
typedef unsigned int size_t;
#endif
#endif
#ifndef __WCHAR_T_DEFINED
#define __WCHAR_T_DEFINED
#ifndef _WCHAR_T_DEFINED
#define _WCHAR_T_DEFINED
#endif
typedef char wchar_t;
#endif
#define NULL ((void *)0)
#define offsetof(x, y) (size_t)&(((x *)0)->y)
#endif