From b7895f158741f791d0a6211ad955bc8bce0f3452 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 3 Apr 2018 12:09:23 +0100 Subject: Fix VS2008 build. Ken reports that a VS2008 import of the projects fails with complaints about __restrict whereever stdlib.h is included. Fix the #ifdeffery so that we don't mess with it on VS2008. --- include/mupdf/fitz/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mupdf/fitz/system.h b/include/mupdf/fitz/system.h index 136246a7..c480bd7c 100644 --- a/include/mupdf/fitz/system.h +++ b/include/mupdf/fitz/system.h @@ -159,7 +159,7 @@ void fz_free_argv(int argc, char **argv); /* restrict is standard in C99, but not in all C++ compilers. */ #if __STDC_VERSION__ == 199901L /* C99 */ -#elif _MSC_VER >= 1500 /* MSVC 9 or newer */ +#elif _MSC_VER >= 1600 /* MSVC 10 or newer */ #define restrict __restrict #elif __GNUC__ >= 3 /* GCC 3 or newer */ #define restrict __restrict -- cgit v1.2.3