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:
Seth Jackson 2015-08-25 18:55:07 -04:00 committed by Justin M. Keyes
parent bbe24da869
commit 7c135b8ccb

View File

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