diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-21 00:19:15 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-21 00:32:34 +0100 |
commit | 226352afcbbc5af703f168c1290e07add26b44fe (patch) | |
tree | fd5d38d80685f4ac5db9f48df35965767d841b38 /src/nvim/math.h | |
parent | c6a039d087ca2b333d1d3a2604d675e0010f7063 (diff) | |
download | rneovim-226352afcbbc5af703f168c1290e07add26b44fe.tar.gz rneovim-226352afcbbc5af703f168c1290e07add26b44fe.tar.bz2 rneovim-226352afcbbc5af703f168c1290e07add26b44fe.zip |
build: Fix -Wconversion warnings for fpclassify et al
closes #8274
The parent commit tries a different approach, but that fails on Apple
Clang version:
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
which somehow compiles the check_c_source_compiles() check, but then
complains during later compilation that __fpclassify is not defined
(regardless of "#include <math.h>").
Diffstat (limited to 'src/nvim/math.h')
-rw-r--r-- | src/nvim/math.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/math.h b/src/nvim/math.h new file mode 100644 index 0000000000..7969323905 --- /dev/null +++ b/src/nvim/math.h @@ -0,0 +1,7 @@ +#ifndef NVIM_MATH_H +#define NVIM_MATH_H + +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "math.h.generated.h" +#endif +#endif // NVIM_MATH_H |