home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  434 b   |  31 lines  |  [TEXT/MPS ]

  1. /*
  2.     StdDef.h -- Common definitions
  3.     
  4.     Copyright Apple Computer,Inc.    1987-1990, 1994
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STDDEF__
  10. #define __STDDEF__
  11.  
  12. typedef int ptrdiff_t;
  13.  
  14. #ifndef __size_t__
  15. #define __size_t__
  16. typedef unsigned int size_t;
  17. #endif
  18.  
  19. #ifndef __wchar_t__
  20. #define __wchar_t__
  21. typedef short wchar_t;
  22. #endif
  23.  
  24. #ifndef NULL
  25. #define NULL 0
  26. #endif
  27.  
  28. #define offsetof(structure,field) ((size_t)&((structure *) 0)->field)
  29.  
  30. #endif
  31.