stdbool.h 898 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifdef _LIBCPP_COMPILER_MSVC
  21. #include Y_MSVC_INCLUDE_NEXT(stdbool.h)
  22. #else
  23. #include_next <stdbool.h>
  24. #endif
  25. #ifdef __cplusplus
  26. #undef bool
  27. #undef true
  28. #undef false
  29. #undef __bool_true_false_are_defined
  30. #define __bool_true_false_are_defined 1
  31. #endif
  32. #endif // _LIBCPP_STDBOOL_H