home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_03 / 8n03098b < prev    next >
Text File  |  1990-03-20  |  452b  |  31 lines

  1.  
  2.  
  3. *** Listing 3 ***
  4.  
  5. /*
  6.  * stddef.h - common definitions (for DECUS C)
  7.  */
  8. #ifndef _STDDEF_H_INCLUDED
  9.  
  10. #include <quirks.h>
  11.  
  12. #define NULL ((void *)0)
  13.  
  14. #define offsetof(t, m) ((size_t)&(((t *)NULL)->m))
  15.  
  16. typedef int ptrdiff_t;
  17.  
  18. #ifndef _SIZE_T_DEFINED
  19. typedef unsigned size_t;
  20. #define _SIZE_T_DEFINED
  21. #endif
  22.  
  23. #ifndef _WCHAR_T_DEFINED
  24. typedef char wchar_t;
  25. #define _WCHAR_T_DEFINED
  26. #endif
  27.  
  28. #define _STDDEF_H_INCLUDED
  29. #endif
  30.  
  31.