summaryrefslogtreecommitdiff
path: root/lib/ktl/include/version
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ktl/include/version')
-rw-r--r--lib/ktl/include/version14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/ktl/include/version b/lib/ktl/include/version
new file mode 100644
index 0000000..ba04749
--- /dev/null
+++ b/lib/ktl/include/version
@@ -0,0 +1,14 @@
+// Copyright 2024 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
+
+#include_next <version>
+
+// We want to be able to implement specialization for std::formatter in common libraries for kernel
+// and userspace. By undefing it here, we allow those libraries to avoid exposing that code to the
+// kernel where it's not supported.
+#undef __cpp_lib_format