summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilherme Goncalves <guilherme.p.gonc@gmail.com>2014-12-18 06:01:21 (GMT)
committerJason Evans <je@fb.com>2015-01-09 22:33:46 (GMT)
commit51f86346c000aa2a44abaab08caeedcb151e6556 (patch)
treed6cb3c0064acda0638866b514e904dc8599a9046
parentb7b44dfad09186cf74080818075eb0bfc0805e3b (diff)
downloadjemalloc-51f86346c000aa2a44abaab08caeedcb151e6556.zip
jemalloc-51f86346c000aa2a44abaab08caeedcb151e6556.tar.gz
jemalloc-51f86346c000aa2a44abaab08caeedcb151e6556.tar.bz2
Add a isblank definition for MSVC < 2013
-rw-r--r--include/jemalloc/internal/jemalloc_internal_decls.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_decls.h b/include/jemalloc/internal/jemalloc_internal_decls.h
index fb2effb..b10561c 100644
--- a/include/jemalloc/internal/jemalloc_internal_decls.h
+++ b/include/jemalloc/internal/jemalloc_internal_decls.h
@@ -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