5ef67fa12dcef8cd513e1f8caf11a41dfdec26a7
[reactos.git] / posix / include / stddef.h
1 /* $Id: stddef.h,v 1.4 2002/10/29 04:45:19 rex Exp $
2 */
3 /*
4 * stddef.h
5 *
6 * standard type definitions. Conforming to the Single UNIX(r) Specification
7 * Version 2, System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __STDDEF_H_INCLUDED__
26 #define __STDDEF_H_INCLUDED__
27
28 /* INCLUDES */
29 #include <sys/types.h>
30
31 /* OBJECTS */
32
33 /* TYPES */
34 typedef signed long int ptrdiff_t;
35 typedef unsigned short int wchar_t;
36
37 /* CONSTANTS */
38 #ifndef NULL
39 #define NULL ((void *)(0)) /* Null pointer constant. */
40 #endif
41
42 /* PROTOTYPES */
43
44 /* MACROS */
45 #define offsetof(t,m) ((size_t) &((t *)0)->m)
46
47 #endif /* __STDDEF_H_INCLUDED__ */
48
49 /* EOF */
50