home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / V < prev    next >
Encoding:
Text File  |  1992-12-09  |  1.0 KB  |  50 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 _SIZE_T_DEFINED
  18. #   if _SUN || _BSD && !_RT || _ENGINE
  19.     typedef int size_t;    /* Must match /usr/include/sys/types.h */
  20. #   elif _SOL
  21.     typedef    unsigned int size_t;
  22. #   elif _IBMESA
  23.             typedef unsigned long int size_t;
  24. #   elif (_RT && _BSD) || _IBM370 || (_AIX && _I386)
  25. #    if __HIGHC__
  26.             typedef long int size_t;
  27. #    else
  28.             typedef unsigned long int size_t;
  29. #    endif
  30. #   elif _NEXT
  31.             typedef unsigned long int size_t;
  32. #   elif _ATT && _MC68    /* HP system V has two definitions of size_t. */
  33.     #ifndef __STDC__
  34.             typedef int size_t;
  35.     #else
  36.             typedef unsigned int size_t;
  37.     #endif
  38. #   elif _NEWS && _MC68
  39.     typedef long size_t;
  40. #   else
  41.        typedef unsigned int size_t;
  42. #   endif
  43. #endif
  44.  
  45. #ifdef __CPLUSPLUS__
  46. }
  47. #endif
  48.  
  49. #endif /*_SIZET_H*/
  50.