#if __CPU__ == 3 || __CPU__ == 5 || __CPU__ == 7
#ifndef  _PTRDIFF_T
#define  _PTRDIFF_T
typedef  long           ptrdiff_t;
#endif
#ifndef  _SIZE_T
#define  _SIZE_T
typedef  unsigned long  size_t;
#endif
#else
#ifndef  _PTRDIFF_T
#define  _PTRDIFF_T
typedef  int            ptrdiff_t;
#endif
#ifndef  _SIZE_T
#define  _SIZE_T
typedef  unsigned int   size_t;
#endif
#endif

#ifndef  NULL
#define  NULL           ((void *)0)
#endif

#ifndef  offsetof
#define  offsetof(type,id) ((char *)(&(((type *)NULL)->id))  -    \
                            (char *)((type *)NULL))
#endif

#ifndef  errno
#define  errno          _errno
#endif
