<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5ee5a8600f735eb04f07d894088367ba1f506e84">https://github.com/macports/macports-ports/commit/5ee5a8600f735eb04f07d894088367ba1f506e84</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 5ee5a86  ghostscript: Fix build failure on C99-mode compilers
</span>5ee5a86 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 5ee5a8600f735eb04f07d894088367ba1f506e84
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Mar 29 23:22:57 2018 -0500

<span style='display:block; white-space:pre;color:#404040;'>    ghostscript: Fix build failure on C99-mode compilers
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    This affected clang from Xcode 6 and earlier.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/56144
</span>---
 print/ghostscript/Portfile                    |  1 +
 print/ghostscript/files/gs_restrict-C99.patch | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/ghostscript/Portfile b/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 42c61c5..06b9379 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/ghostscript/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,6 +30,7 @@ distfiles           ${distname}.tar.gz:source \
</span> 
 patchfiles          patch-base_unix-dll.mak.diff
 patchfiles-append   patch-base_unixinst.mak.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   gs_restrict-C99.patch
</span> 
 checksums           ${distname}.tar.gz \
                     rmd160  e5ecbd1cb6777fb0968f0967d3d4b30da2fefddd \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/print/ghostscript/files/gs_restrict-C99.patch b/print/ghostscript/files/gs_restrict-C99.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..cb1254d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/print/ghostscript/files/gs_restrict-C99.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix build on C99 compilers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=b24a4bd9bab156443c4667d4266e3deb43f933f7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- base/stdpre.h.orig     2018-03-21 03:48:06.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ base/stdpre.h  2018-03-29 23:11:41.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -95,6 +95,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* restrict is standard in C99, but not in all C++ compilers. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if __STDC_VERSION__ == 199901L /* C99 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(HAVE_RESTRICT) && HAVE_RESTRICT==1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#  define gs_restrict restrict
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else /* defined(HAVE_RESTRICT) && HAVE_RESTRICT==1 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#  define gs_restrict
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif /* defined(HAVE_RESTRICT) && HAVE_RESTRICT==1 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(_MSC_VER) && _MSC_VER >= 1500 /* MSVC 9 or newer */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define gs_restrict __restrict
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif __GNUC__ >= 3 /* GCC 3 or newer */
</span></pre><pre style='margin:0'>

</pre>