summaryrefslogtreecommitdiff
path: root/ginclude/stddef.h
blob: 562b4e6cc3af2933b48fd1556cdd2c8e4ed095ab (plain)
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
#ifndef _STDDEF_H
#define _STDDEF_H

/* Signed type of difference of two pointers.  */

typedef long int ptrdiff_t;

/* Unsigned type of `sizeof' something.  */

typedef unsigned long int size_t;

/* Wide character type.
   Locale-writers should change this as necessary to
   be big enough to hold unique values not between 0 and 127,
   and not (wchar_t) -1, for each defined multibyte character.  */

typedef int wchar_t;

/* A null pointer constant.  */

/* in case <stdio.h> has defined it. */
#undef NULL
#define NULL ((void *)0)

/* Offset of member MEMBER in a struct of type TYPE.  */

#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER)

#endif /* _STDDEF_H */