stdbool.readme 819 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _STDBOOL_H
  2. #define _STDBOOL_H
  3. /*******************************************************************************
  4. * This file contains the definitions specified in stdbool.h. It is provided to
  5. * allow the library to be built using compilers that do not provide their own
  6. * stdbool.h defintion.
  7. *
  8. * To use this file:
  9. *
  10. * 1) Copy this file into a directory that is in your compiler's include path.
  11. * The directory must be part of the include path for system header files,
  12. * for example passed using gcc's "-I" or "-isystem" options.
  13. *
  14. * 2) Rename the copied file stdbool.h.
  15. *
  16. */
  17. #ifndef __cplusplus
  18. /* _Bool was introduced in C99. */
  19. #define bool int
  20. #define false 0
  21. #define true 1
  22. #endif
  23. #define __bool_true_false_are_defined 1
  24. #endif /* _STDBOOL_H */