Fix typo in 9b54bd30006c008b4a951331b273613d5bac3abf
[pm.git] / memory / jemalloc / 0003-Add-a-isblank-definition-for-MSVC-2013.patch
blob6b75dd367ba6698e8aab47e7227dec5aaef88154
1 From 4dd4193c59ff3f77e4ab36214ec63425ca834323 Mon Sep 17 00:00:00 2001
2 From: Guilherme Goncalves <guilherme.p.gonc@gmail.com>
3 Date: Thu, 18 Dec 2014 15:01:21 +0900
4 Subject: [PATCH] Add a isblank definition for MSVC < 2013
6 ---
7 include/jemalloc/internal/jemalloc_internal_decls.h | 7 +++++++
8 1 file changed, 7 insertions(+)
10 diff --git a/include/jemalloc/internal/jemalloc_internal_decls.h b/include/jemalloc/internal/jemalloc_internal_decls.h
11 index fb2effb..65f2e4b 100644
12 --- a/include/jemalloc/internal/jemalloc_internal_decls.h
13 +++ b/include/jemalloc/internal/jemalloc_internal_decls.h
14 @@ -52,6 +52,13 @@ typedef intptr_t ssize_t;
15 # define __func__ __FUNCTION__
16 /* Disable warnings about deprecated system functions. */
17 # pragma warning(disable: 4996)
18 +#if _MSC_VER < 1800
19 +static int
20 +isblank(int c)
22 + return (c == '\t' || c == ' ');
24 +#endif
25 #else
26 # include <unistd.h>
27 #endif
28 --
29 2.1.3