1// Copyright 2018 The Fuchsia Authors
2//
3// Use of this source code is governed by a MIT-style
4// license that can be found in the LICENSE file or at
5// https://opensource.org/licenses/MIT
6
7#pragma once
8
9// TODO(ZX-1751): The libc++ <limits> defines specializations for
10// floating-point types, which in GCC is incompatible with the command-line
11// switches used for the kernel.  So this header fakes out the other libc++
12// headers with a std::numeric_limits that is close enough.
13
14#include <fbl/limits.h>
15
16namespace std {
17
18template <typename T>
19using numeric_limits = fbl::numeric_limits<T>;
20
21}  // namespace std
22