home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / 00 < prev    next >
Encoding:
Text File  |  1992-12-09  |  662 b   |  42 lines

  1. /*
  2.  *   stddef.h -- ANSI 
  3.  *
  4.  *   Various useful macros and types.
  5.  *
  6.  *           Copyright (c) 1990, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _STDDEF_H
  10. #define _STDDEF_H
  11.  
  12. #ifdef __CPLUSPLUS__
  13. extern "C" {
  14. #endif
  15.  
  16. #ifndef _PTRDIFF_T_DEFINED
  17. #define _PTRDIFF_T_DEFINED
  18. typedef int ptrdiff_t;
  19. #endif
  20.  
  21. #ifndef _SIZET_H
  22. #include <sizet.h>
  23. #endif
  24.  
  25. #ifndef _WCHAR_T_DEFINED
  26. #define _WCHAR_T_DEFINED
  27. typedef _wchar_t wchar_t;
  28. #endif
  29.  
  30. #ifndef NULL
  31. #define NULL            ((void *)0)
  32. #endif
  33.  
  34. #ifndef offsetof
  35. #define offsetof(T,I)   ((size_t)((char *)&((T*)0)->I-(char *)0))
  36. #endif
  37.  
  38. #ifdef __CPLUSPLUS__
  39. }
  40. #endif
  41. #endif /*_STDDEF_H*/
  42.