Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
584 B

25 years ago
  1. /* $OpenBSD: stdbool.h,v 1.2 1999/09/24 23:09:09 espie Exp $ */
  2. /*
  3. * Written by Marc Espie, September 25, 1999
  4. * Public domain.
  5. */
  6. #ifndef _STDBOOL_H_
  7. #define _STDBOOL_H_
  8. /* `_Bool' type must promote to `int' or `unsigned int'. */
  9. typedef enum {
  10. false = 0,
  11. true = 1
  12. } _Bool;
  13. /* And those constants must also be available as macros. */
  14. #define false false
  15. #define true true
  16. /* User visible type `bool' is provided as a macro which may be redefined */
  17. #define bool _Bool
  18. /* Inform that everything is fine */
  19. #define __bool_true_false_are_defined 1
  20. #endif /* _STDBOOL_H_ */