summaryrefslogtreecommitdiff
path: root/lib/ktl/include/cstdint
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-07-11 22:48:30 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-07-11 22:48:30 +0800
commit3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee (patch)
tree4bd5a49ef60ad1e371c0984cd46838368c5ef83a /lib/ktl/include/cstdint
parent48ef95c24e9ac3d11200b61af617a01b10b507d1 (diff)
downloadlume-3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee.tar.gz
lume-3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee.tar.xz
lib: establish Zircon libc++ and KTL foundation
Diffstat (limited to 'lib/ktl/include/cstdint')
-rw-r--r--lib/ktl/include/cstdint18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/ktl/include/cstdint b/lib/ktl/include/cstdint
new file mode 100644
index 0000000..0ab922c
--- /dev/null
+++ b/lib/ktl/include/cstdint
@@ -0,0 +1,18 @@
+// Copyright 2022 The Fuchsia Authors
+//
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file or at
+// https://opensource.org/licenses/MIT
+
+#pragma once
+
+// Other libc++ headers use <cstdint> but libc++'s <cstdint> complains if it
+// thinks <stdint.h> is not its own wrapper, so we define _LIBCPP_STDINT_H. We
+// always get the real <stdint.h> before the libc++ with the way the include
+// paths are set up, which is necessary because of other headers where
+// preempting libc++'s header is unavoidable for the kernel environment.
+
+#include <stdint.h>
+
+#define _LIBCPP_STDINT_H
+#include_next <cstdint>