From: Jakob Nixdorf Date: Fri, 22 Jan 2016 19:10:42 +0000 (+0100) Subject: Fix build with ghostscript-9.18. X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~27^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8da53964edec8a665c3996d483df243eb150c2c4;p=graphviz Fix build with ghostscript-9.18. --- diff --git a/plugin/gs/gvloadimage_gs.c b/plugin/gs/gvloadimage_gs.c index 4ed9b717f..62dd3c933 100644 --- a/plugin/gs/gvloadimage_gs.c +++ b/plugin/gs/gvloadimage_gs.c @@ -72,11 +72,11 @@ static void gs_error(GVJ_t * job, const char *name, const char *funstr, int err) assert (err < 0); - if (err >= e_VMerror) + if (err >= gs_error_VMerror) errsrc = "PostScript Level 1"; - else if (err >= e_unregistered) + else if (err >= gs_error_unregistered) errsrc = "PostScript Level 2"; - else if (err >= e_invalidid) + else if (err >= gs_error_invalidid) errsrc = "DPS error"; else errsrc = "Ghostscript internal error";