mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-15 15:11:41 +03:00
Add a isblank definition for MSVC < 2013
This commit is contained in:
parent
b7b44dfad0
commit
51f86346c0
1 changed files with 8 additions and 0 deletions
|
|
@ -52,6 +52,14 @@ typedef intptr_t ssize_t;
|
|||
# define __func__ __FUNCTION__
|
||||
/* Disable warnings about deprecated system functions. */
|
||||
# pragma warning(disable: 4996)
|
||||
#if _MSC_VER < 1800
|
||||
static int
|
||||
isblank(int c)
|
||||
{
|
||||
|
||||
return (c == '\t' || c == ' ');
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue