home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / stddef.h < prev    next >
C/C++ Source or Header  |  1998-08-19  |  994b  |  38 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _STDDEF_H
  12. #define _STDDEF_H
  13. #ident    "@(#)sgs-head:common/head/stddef.h    1.9"
  14.  
  15. typedef long     ptrdiff_t;
  16.  
  17. #ifndef _SIZE_T
  18. #   define _SIZE_T
  19.     typedef unsigned int    size_t;
  20. #endif
  21.  
  22. #ifndef NULL
  23. #define NULL    0
  24. #endif
  25.  
  26. #ifndef _WCHAR_T
  27. #   define _WCHAR_T
  28.     typedef long    wchar_t;
  29. #endif
  30.  
  31. #if defined(__cplusplus)
  32. #define offsetof(s, m)    ((size_t)__INTADDR__(&((s *)0)->m))
  33. #else
  34. #define offsetof(s, m)    (size_t)(&(((s *)0)->m))
  35. #endif
  36.  
  37. #endif /*_STDDEF_H*/
  38.