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>").
This commit is contained in:
Justin M. Keyes
2019-01-21 00:19:15 +01:00
parent c6a039d087
commit 226352afcb
7 changed files with 51 additions and 35 deletions

7
src/nvim/math.h Normal file
View File

@@ -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