1 | //===-- MPFRUtils.h ---------------------------------------------*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef LLVM_LIBC_UTILS_MPFRWRAPPER_MPFR_INC_H |
10 | #define LLVM_LIBC_UTILS_MPFRWRAPPER_MPFR_INC_H |
11 | |
12 | #ifdef CUSTOM_MPFR_INCLUDER |
13 | // Some downstream repos are monoliths carrying MPFR sources in their third |
14 | // party directory. In such repos, including the MPFR header as |
15 | // `#include <mpfr.h>` is either disallowed or not possible. If that is the |
16 | // case, a file named `CustomMPFRIncluder.h` should be added through which the |
17 | // MPFR header can be included in manner allowed in that repo. |
18 | #include "CustomMPFRIncluder.h" |
19 | #else |
20 | #include <mpfr.h> |
21 | #endif |
22 | |
23 | #endif // LLVM_LIBC_UTILS_MPFRWRAPPER_MPFR_INC_H |
24 | |