opnsense-ports/print/ghostscript9-agpl-base/files/patch-base-stdpre.h
Franco Fichtner ac663808ff */*: sync with upstream
Taken from: HardenedBSD
2018-06-13 06:06:57 +02:00

12 lines
416 B
C

--- base/stdpre.h.orig 2018-03-21 08:48:06 UTC
+++ base/stdpre.h
@@ -94,7 +94,8 @@
#endif
/* restrict is standard in C99, but not in all C++ compilers. */
-#if __STDC_VERSION__ == 199901L /* C99 */
+#if __STDC_VERSION__ >= 199901L /* C99 */
+#define gs_restrict restrict
#elif defined(_MSC_VER) && _MSC_VER >= 1500 /* MSVC 9 or newer */
#define gs_restrict __restrict
#elif __GNUC__ >= 3 /* GCC 3 or newer */