mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
build/msvc: Fix errors caused by compiler intrinsics
This commit is contained in:
parent
773f23e00d
commit
d7ee323326
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user