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