summaryrefslogtreecommitdiff
path: root/libspectre
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2016-04-02 11:15:38 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2016-04-02 11:15:38 +0200
commit34a52f30400aab1c21c69c31122d496751d7d99e (patch)
tree3a4b5b3af4223663271858600be81637def63b89 /libspectre
parentebbff50f9a32725e6533130e235ebabbb1cd6e84 (diff)
Fix the build with Ghostscript >= 9.18
Diffstat (limited to 'libspectre')
-rw-r--r--libspectre/spectre-gs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libspectre/spectre-gs.c b/libspectre/spectre-gs.c
index 93444a4..b0821ce 100644
--- a/libspectre/spectre-gs.c
+++ b/libspectre/spectre-gs.c
@@ -29,6 +29,17 @@
#include <ghostscript/iapi.h>
#include <ghostscript/ierrors.h>
+/* e_ macros have been removed from Ghostscript in 9.18. */
+#ifndef e_Fatal
+#define e_Fatal gs_error_Fatal
+#endif
+#ifndef e_NeedInput
+#define e_NeedInput gs_error_NeedInput
+#endif
+#ifndef e_ExecStackUnderflow
+#define e_ExecStackUnderflow gs_error_ExecStackUnderflow
+#endif
+
#define BUFFER_SIZE 32768
struct SpectreGS {