mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 04:28:33 +00:00
MSVC: Define inline
and restrict
. #3237
MSVC 2015 defines __func__ (C++11). https://msdn.microsoft.com/en-us/library/dn919276.aspx MSVC only allows inline in C++ and requires __inline in C instead. https://msdn.microsoft.com/en-us/library/bw1hbe6y.aspx
This commit is contained in:

committed by
Justin M. Keyes

parent
bbe24da869
commit
7c135b8ccb
@@ -21,6 +21,15 @@
|
||||
// - SYS_VIMRC_FILE
|
||||
// - SPECIAL_WILDCHAR
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# ifndef inline
|
||||
# define inline __inline
|
||||
# endif
|
||||
# ifndef restrict
|
||||
# define restrict __restrict
|
||||
# endif
|
||||
#endif
|
||||
|
||||
typedef SSIZE_T ssize_t;
|
||||
|
||||
#ifndef SSIZE_MAX
|
||||
|
Reference in New Issue
Block a user