home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 7.ddi / MWHC.007 / Q < prev    next >
Encoding:
Text File  |  1992-03-27  |  942 b   |  46 lines

  1. /*
  2.  *   sizet.h -- extra-ANSI 
  3.  *
  4.  *   Declare the type for size_t.
  5.  *
  6.  *           Copyright (c) 1990-1991, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _SIZET_H
  10. #define _SIZET_H
  11.  
  12. #ifdef __CPLUSPLUS__
  13. extern "C" {
  14. #endif
  15.  
  16. #ifndef _SIZE_T_DEFINED
  17. #   define _SIZE_T_DEFINED
  18. #   if _SUN || _BSD && !_RT || _ENGINE || _HOBBIT
  19.     typedef int size_t;    /* Must match /usr/include/sys/types.h */
  20. #   elif (_RT && _BSD) || _IBM370 || (_AIX && _I386)
  21. #    if __HIGHC__
  22.             typedef long int size_t;
  23. #    else
  24.             typedef unsigned long int size_t;
  25. #    endif
  26. #   elif _NEXT
  27.             typedef unsigned long int size_t;
  28. #   elif _ATT && _MC68    /* HP system V has two definitions of size_t. */
  29.     #ifndef __STDC__
  30.             typedef int size_t;
  31.     #else
  32.             typedef unsigned int size_t;
  33.     #endif
  34. #   elif _NEWS && _MC68
  35.     typedef long size_t;
  36. #   else
  37.        typedef unsigned int size_t;
  38. #   endif
  39. #endif
  40.  
  41. #ifdef __CPLUSPLUS__
  42. }
  43. #endif
  44.  
  45. #endif /*_SIZET_H*/
  46.