home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-bin.lha / lib / g++-include / bool.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  450b  |  25 lines

  1. // Defining TRUE and FALSE is usually a Bad Idea,
  2. // because you will probably be inconsistent with anyone
  3. // else who had the same clever idea.
  4. // Therefore:  DON'T USE THIS FILE.
  5.  
  6. #ifndef _bool_h
  7. #define _bool_h 1
  8.  
  9. #include   <_G_config.h>
  10.  
  11. #if _G_HAVE_BOOL
  12. #undef TRUE
  13. #undef FALSE
  14. #define TRUE true
  15. #define FALSE false
  16. #else
  17. #undef FALSE
  18. #undef TRUE
  19. #undef true
  20. #undef false
  21. enum bool { FALSE = 0, false = 0, TRUE = 1, true = 1 };
  22. #endif
  23.  
  24. #endif
  25.