From 9abe78b7a1505740a59fd2dbf217d50241b55b67 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 1 Mar 2017 10:35:51 +0000 Subject: Bug 697620: Avoid clash with "isprint". --- source/pdf/pdf-lex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/pdf/pdf-lex.c b/source/pdf/pdf-lex.c index 34c753ab..ec66f56e 100644 --- a/source/pdf/pdf-lex.c +++ b/source/pdf/pdf-lex.c @@ -35,7 +35,7 @@ static inline int iswhite(int ch) ch == '\040'; } -static inline int isprint(int ch) +static inline int fz_isprint(int ch) { return ch >= ' ' && ch <= '~'; } @@ -448,7 +448,7 @@ pdf_token_from_keyword(char *key) while (*key) { - if (!isprint(*key)) + if (!fz_isprint(*key)) return PDF_TOK_ERROR; ++key; } -- cgit v1.2.3