Add a isblank definition for MSVC < 2013

This commit is contained in:
Guilherme Goncalves 2014-12-18 15:01:21 +09:00 committed by Jason Evans
parent b7b44dfad0
commit 51f86346c0

View File

@ -52,6 +52,14 @@ typedef intptr_t ssize_t;
# define __func__ __FUNCTION__ # define __func__ __FUNCTION__
/* Disable warnings about deprecated system functions. */ /* Disable warnings about deprecated system functions. */
# pragma warning(disable: 4996) # pragma warning(disable: 4996)
#if _MSC_VER < 1800
static int
isblank(int c)
{
return (c == '\t' || c == ' ');
}
#endif
#else #else
# include <unistd.h> # include <unistd.h>
#endif #endif