cstdint 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2021 Google LLC
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file
  8. *
  9. * @brief Stub header allowing compilation of `#include <cstdint>`
  10. */
  11. #ifndef ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDINT_
  12. #define ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDINT_
  13. #include <stdint.h>
  14. namespace std {
  15. using ::int8_t;
  16. using ::int16_t;
  17. using ::int32_t;
  18. using ::int64_t;
  19. using ::intmax_t;
  20. using ::int_fast8_t;
  21. using ::int_fast16_t;
  22. using ::int_fast32_t;
  23. using ::int_fast64_t;
  24. using ::int_least8_t;
  25. using ::int_least16_t;
  26. using ::int_least32_t;
  27. using ::int_least64_t;
  28. using ::uint8_t;
  29. using ::uint16_t;
  30. using ::uint32_t;
  31. using ::uint64_t;
  32. using ::uintmax_t;
  33. using ::uint_fast8_t;
  34. using ::uint_fast16_t;
  35. using ::uint_fast32_t;
  36. using ::uint_fast64_t;
  37. using ::uint_least8_t;
  38. using ::uint_least16_t;
  39. using ::uint_least32_t;
  40. using ::uint_least64_t;
  41. using ::intptr_t;
  42. using ::uintptr_t;
  43. }
  44. #endif /* ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDINT_ */