home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  453 b   |  34 lines

  1. #ifndef __STDDEF_H
  2. #define __STDDEF_H
  3.  
  4. #ifndef _SIZE_T
  5. #define _SIZE_T
  6.  
  7. #ifdef __MAXON__
  8.  typedef unsigned int size_t;
  9. #else
  10.  typedef unsigned long size_t;
  11. #endif
  12.  
  13. #endif
  14.  
  15. #ifndef _PTRDIFF_T
  16. #define _PTRDIFF_T
  17. typedef long ptrdiff_t;
  18. #endif
  19.  
  20. #ifndef _WCHAR_T
  21. #define _WCHAR_T
  22. typedef char wchar_t;
  23. #endif
  24.  
  25. #ifndef NULL
  26. #define NULL ((void *)0)
  27. #endif
  28.  
  29. extern int errno;
  30.  
  31. #define offsetof(type,memb) ((size_t)((unsigned long)&((type *)0)->memb))
  32.  
  33. #endif
  34.