mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 05:33:06 +00:00
Add a isblank definition for MSVC < 2013
This commit is contained in:
committed by
Jason Evans
parent
b7b44dfad0
commit
51f86346c0
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user