home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / modhead1.zip / SIZET.H < prev    next >
C/C++ Source or Header  |  1995-09-17  |  1KB  |  57 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 && !_I386 || _ENGINE
  19.     typedef int size_t;    /* Must match /usr/include/sys/types.h */
  20. #   elif (_SOL && !_IBM_PPC)
  21.     typedef    unsigned int size_t;
  22. #   elif _UPA
  23. #       ifndef _SIZE_T
  24. #           define _SIZE_T      /* checks by /usr/inclyde/sys/types.h too */
  25.             typedef unsigned int size_t;
  26. #       endif /* _SIZE_T */
  27. #   elif _IBMESA || _BSD && _I386 || _WPX
  28.             typedef unsigned long int size_t;
  29. #   elif (_RT && _BSD) || _IBM370 || (_AIX && _I386)
  30. #    if __HIGHC__
  31.             typedef long int size_t;
  32. #    else
  33.             typedef unsigned long int size_t;
  34. #    endif
  35. #   elif _NEXT
  36.             typedef unsigned long int size_t;
  37. #   elif _ATT && _MC68    /* HP system V has two definitions of size_t. */
  38.     #ifndef __STDC__
  39.             typedef int size_t;
  40.     #else
  41.             typedef unsigned int size_t;
  42.     #endif
  43. #   elif _NEWS && _MC68
  44.     typedef long size_t;
  45. #   elif (_RS6000 || _IBM_PPC) && !_OS2
  46.     typedef unsigned long size_t;
  47. #   else
  48.        typedef unsigned int size_t;
  49. #   endif
  50. #endif
  51.  
  52. #ifdef __CPLUSPLUS__
  53. }
  54. #endif
  55.  
  56. #endif /*_SIZET_H*/
  57.