home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / bool.h next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  1.5 KB  |  43 lines

  1. #ifndef __bool_h
  2. #define __bool_h
  3. //=============================================================================
  4. //
  5. //    Copyright (C) 1995-1997 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // bool.h
  19. //
  20. //    A header to supplement NeXT's lack of bool type in their C++ compiler.
  21. //
  22. //-----------------------------------------------------------------------------
  23. //-----------------------------------------------------------------------------
  24. // $Id: bool.h,v 1.2 97/04/01 08:07:37 sunshine Exp $
  25. // $Log:    bool.h,v $
  26. //  Revision 1.2  97/04/01  08:07:37  sunshine
  27. //  v0.125.5: Ported to OPENSTEP 4.2 prerelease for NT.
  28. //  'bool' is now a built-in type.
  29. //  
  30. //  Revision 1.1  95/09/27  12:21:21  zarnuk
  31. //  Initial revision
  32. //-----------------------------------------------------------------------------
  33.  
  34. #if defined(__NeXT__) && (__GNUC__ < 2 || __GNUC_MINOR__ < 7)
  35.  
  36. typedef char bool;
  37. #define false    ((bool)0)
  38. #define true    ((bool)1)
  39.  
  40. #endif
  41.  
  42. #endif    // __bool_h
  43.