home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / mntinc16 / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-29  |  829 b   |  42 lines

  1. /*
  2.  * STDDEF.H    standard definitions
  3.  *    ansi draft sec 4.14
  4.  */
  5.  
  6. #ifndef _STDDEF_H
  7. #define _STDDEF_H
  8.  
  9. #ifndef _COMPILER_H
  10. #include <compiler.h>
  11. #endif
  12.  
  13. #ifndef _SIZE_T
  14. #define _SIZE_T __SIZE_TYPEDEF__
  15. typedef _SIZE_T size_t;
  16. #endif
  17.  
  18. #ifndef _PTRDIFF_T
  19. #define _PTRDIFF_T __PTRDIFF_TYPEDEF__
  20. typedef _PTRDIFF_T ptrdiff_t;
  21. #endif
  22.  
  23. #ifndef _WCHAR_T
  24. #define _WCHAR_T __WCHAR_TYPEDEF__
  25. typedef _WCHAR_T wchar_t;
  26. #endif
  27.  
  28. /* A null pointer constant.  */
  29. #ifndef NULL
  30. #define NULL __NULL
  31. #endif
  32.  
  33. /* Offset of member MEMBER in a struct of type TYPE.  */
  34. #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
  35.  
  36. #ifndef EXIT_FAILURE
  37. #define    EXIT_FAILURE    (1)        /* failure return value for exit() */
  38. #define    EXIT_SUCCESS    (0)        /* success return value for exit() */
  39. #endif
  40.  
  41. #endif /* _STDDEF_H */
  42.