litex/misoc/software/include/base/stddef.h

24 lines
306 B
C
Raw Normal View History

2012-05-25 16:30:17 -04:00
#ifndef __STDDEF_H
#define __STDDEF_H
#ifdef __cplusplus
extern "C" {
#endif
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)
#ifdef __cplusplus
}
#endif
2012-05-25 16:30:17 -04:00
#endif /* __STDDEF_H */