diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-03-08 20:26:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 20:26:18 +0100 |
commit | 9cefd83cc7b96d9a20ae8aae5ad5f2c4a02a74f4 (patch) | |
tree | 2933dd4aa96bd42eb8939c7a2afe2fcf544834f1 /src/nvim/eval.c | |
parent | d82621877b72ee8322a5b88adaba4edd5ad3b308 (diff) | |
parent | 0adf950ccf9a0057c552a349d79a716ff7be6f8f (diff) | |
download | rneovim-9cefd83cc7b96d9a20ae8aae5ad5f2c4a02a74f4.tar.gz rneovim-9cefd83cc7b96d9a20ae8aae5ad5f2c4a02a74f4.tar.bz2 rneovim-9cefd83cc7b96d9a20ae8aae5ad5f2c4a02a74f4.zip |
Merge #8084 'build/win: support MSVC'
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 2e4d246f4b..4140eebdf6 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -5936,6 +5936,14 @@ static int get_env_tv(char_u **arg, typval_T *rettv, int evaluate) } #ifdef INCLUDE_GENERATED_DECLARATIONS + +#ifdef _MSC_VER +// This prevents MSVC from replacing the functions with intrinsics, +// and causing errors when trying to get their addresses in funcs.generated.h +#pragma function (ceil) +#pragma function (floor) +#endif + # include "funcs.generated.h" #endif |