Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#ifndef __STDDEF_H
2
#define __STDDEF_H
3
 
4
#ifndef NULL
5
#ifdef __cplusplus
6
#define NULL 0
7
#else
8
#define NULL ((void*)0)
9
#endif
10
#endif
11
#ifndef offsetof
12
#define offsetof(ty,mem) ((size_t) &(((ty *)0)->mem))
13
#endif
14
 
15
typedef long ptrdiff_t;
16
#ifndef _SIZE_T
17
#define _SIZE_T
18
typedef unsigned long size_t;
19
#endif
20
#ifndef _WCHAR_T
21
#define _WCHAR_T
22
typedef unsigned short wchar_t;
23
#endif
24
 
25
#endif /* __STDDEF_H */