home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / LATTIC_3.LZH / HEADERS / STDDEF.H < prev    next >
C/C++ Source or Header  |  1989-12-14  |  585b  |  29 lines

  1. /*
  2.  * stddef.h - standard definitions file
  3.  *
  4.  * Started 30/8/89 Alex G. Kiernan, based on Lattice source.
  5.  *
  6.  * Copyright (c) 1989 HiSoft and Lattice, Inc.
  7.  */
  8.  
  9. #ifndef _STDDEF_H
  10. #define _STDDEF_H
  11.  
  12. #ifndef _SIZE_T
  13. #define _SIZE_T
  14. typedef unsigned long int size_t;
  15. #endif
  16.  
  17. typedef long int ptrdiff_t;
  18.  
  19. #ifndef _WCHAR_T
  20. #define _WCHAR_T
  21. typedef unsigned char wchar_t;
  22. #endif
  23.  
  24. #define offsetof(type,memb) (size_t)&((( type *)0x10)->memb)-(size_t)(( type *)0x10)
  25. /*#define offsetof(type,memb) (size_t)&((( type *)0L)->memb)*/
  26.  
  27. #define    NULL    ((void *)0)
  28. #endif
  29.