litex/software/include/base/stddef.h

16 lines
237 B
C
Raw Normal View History

2012-05-25 16:30:17 -04:00
#ifndef __STDDEF_H
#define __STDDEF_H
2013-03-23 19:17:42 -04:00
#ifdef __cplusplus
#define NULL 0
#else
2012-05-25 16:30:17 -04:00
#define NULL ((void *)0)
2013-03-23 19:17:42 -04:00
#endif
2012-05-25 16:30:17 -04:00
typedef unsigned long size_t;
typedef long ptrdiff_t;
#define offsetof(s,m) (size_t)&(((s *)0)->m)
#endif /* __STDDEF_H */