You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
286 B
20 lines
286 B
3 years ago
|
#ifndef _STDDEF_H
|
||
|
#define _STDDEF_H
|
||
|
|
||
|
#ifndef _PTRDIFF_T
|
||
|
#define _PTRDIFF_T
|
||
|
typedef long ptrdiff_t;
|
||
|
#endif
|
||
|
|
||
|
#ifndef _SIZE_T
|
||
|
#define _SIZE_T
|
||
|
typedef unsigned long size_t;
|
||
|
#endif
|
||
|
|
||
|
#undef NULL
|
||
|
#define NULL ((void *)0)
|
||
|
|
||
|
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||
|
|
||
|
#endif
|