home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stl453up.zip / stl453fx / stlport / cstddef < prev    next >
Text File  |  2002-04-29  |  2KB  |  55 lines

  1. /*
  2.  * Copyright (c) 1999 
  3.  * Boris Fomitchev
  4.  *
  5.  * This material is provided "as is", with absolutely no warranty expressed
  6.  * or implied. Any use is at your own risk.
  7.  *
  8.  * Permission to use or copy this software for any purpose is hereby granted 
  9.  * without fee, provided the above notices are retained on all copies.
  10.  * Permission to modify the code and to distribute modified code is granted,
  11.  * provided the above notices are retained, and a notice that the code was
  12.  * modified is included with the above copyright notice.
  13.  *
  14.  */
  15.  
  16. #ifndef _STLP_CSTDDEF
  17. # define _STLP_CSTDDEF
  18.  
  19. # ifndef _STLP_OUTERMOST_HEADER_ID
  20. #  define _STLP_OUTERMOST_HEADER_ID 0x114
  21. #  include <stl/_prolog.h>
  22. # endif
  23.  
  24. # if (__GNUC__ >= 3) && defined(__CYGWIN__) // this total HACK is the only expedient way I could cygwin to work with GCC 3.0
  25. #  define __need_wint_t // mostly because wint_t didn't seem to get defined otherwise :(
  26. #  define __need_wchar_t
  27. #  define __need_size_t
  28. #  define __need_ptrdiff_t
  29. #  define __need_NULL
  30. # endif
  31.  
  32. # if defined (_STLP_USE_NEW_C_HEADERS)
  33. #  include _STLP_NATIVE_CPP_C_HEADER(cstddef)
  34. # else
  35. #  include _STLP_NATIVE_C_HEADER(stddef.h)
  36. # endif
  37.  
  38. # ifdef _STLP_IMPORT_VENDOR_CSTD
  39. _STLP_BEGIN_NAMESPACE  
  40. using _STLP_VENDOR_CSTD::ptrdiff_t;
  41. using _STLP_VENDOR_CSTD::size_t;
  42. _STLP_END_NAMESPACE
  43. #endif /* _STLP_IMPORT_VENDOR_CSTD */
  44.  
  45. # if (_STLP_OUTERMOST_HEADER_ID == 0x114 )
  46. #  include <stl/_epilog.h>
  47. #  undef _STLP_OUTERMOST_HEADER_ID
  48. # endif
  49.  
  50. #endif /* _STLP_CSTDDEF */
  51.  
  52. // Local Variables:
  53. // mode:C++
  54. // End:
  55.