| // Copyright 2018 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 | |
| // TODO(ZX-1751): The libc++ <limits> defines specializations for | |
| // floating-point types, which in GCC is incompatible with the command-line | |
| // switches used for the kernel. So this header fakes out the other libc++ | |
| // headers with a std::numeric_limits that is close enough. | |
| #include <fbl/limits.h> | |
| namespace std { | |
| template <typename T> | |
| using numeric_limits = fbl::numeric_limits<T>; | |
| } // namespace std |