stdbool.h 871 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // -*- C++ -*-
  2. //===----------------------------------------------------------------------===//
  3. //
  4. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  5. // See https://llvm.org/LICENSE.txt for license information.
  6. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef _LIBCPP_STDBOOL_H
  10. #define _LIBCPP_STDBOOL_H
  11. /*
  12. stdbool.h synopsis
  13. Macros:
  14. __bool_true_false_are_defined
  15. */
  16. #include <__config>
  17. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  18. # pragma GCC system_header
  19. #endif
  20. #if __has_include_next(<stdbool.h>)
  21. # include_next <stdbool.h>
  22. #endif
  23. #ifdef __cplusplus
  24. # undef bool
  25. # undef true
  26. # undef false
  27. # undef __bool_true_false_are_defined
  28. # define __bool_true_false_are_defined 1
  29. #endif
  30. #endif // _LIBCPP_STDBOOL_H