home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 September / pcwk_09_96.iso / demo / wgelectr / pk51demo / files.2 / INC / STDDEF.H < prev    next >
C/C++ Source or Header  |  1994-02-10  |  373b  |  21 lines

  1. /* STDDEF.H: standard definitions            */
  2. /* Copyright KEIL ELEKTRONIK GmbH 1992 V1.10 */
  3.  
  4.  
  5. #ifndef NULL
  6.  #define NULL ((void *) 0)
  7. #endif
  8.  
  9. #ifndef _SIZE_T
  10.  #define _SIZE_T
  11.  typedef unsigned int size_t;
  12. #endif
  13.  
  14. #ifndef _STDDEF_INCLUDED
  15. #define _STDDEF_INCLUDED
  16.  
  17. typedef int          ptrdiff_t;
  18. #define offsetof(s,m)    (size_t)&(((s *)0)->m)
  19.  
  20. #endif
  21.