forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-gfx/graphviz: Add conditional macro definition
Gentoo-bug: 574484 * Merged the 3 following upstream commits into one patch: - ellson/MOTHBALLED-graphviz@8da5396 - ellson/MOTHBALLED-graphviz@f97c86e - ellson/MOTHBALLED-graphviz@c3e9169 Package-Manager: portage-2.3.0
- Loading branch information
1 parent
f077caf
commit eece125
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
media-gfx/graphviz/files/graphviz-2.38.0-ghostscript-9.18.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 8da53964edec8a665c3996d483df243eb150c2c4 Mon Sep 17 00:00:00 2001 | ||
From: Jakob Nixdorf <[email protected]> | ||
Date: Fri, 22 Jan 2016 20:10:42 +0100 | ||
Subject: [PATCH] Fix build with ghostscript-9.18. | ||
|
||
--- a/plugin/gs/gvloadimage_gs.c | ||
+++ b/plugin/gs/gvloadimage_gs.c | ||
@@ -32,6 +32,24 @@ | ||
#include <ghostscript/ierrors.h> | ||
#include <cairo/cairo.h> | ||
|
||
+ | ||
+/** | ||
+ * Ensure compatibility with Ghostscipt versions newer than 9.18 | ||
+ * while maintaining compatibility with the older versions. | ||
+ **/ | ||
+ | ||
+#ifndef e_VMerror | ||
+#define e_VMerror gs_error_VMerror | ||
+#endif | ||
+ | ||
+#ifndef e_unregistered | ||
+#define e_unregistered gs_error_unregistered | ||
+#endif | ||
+ | ||
+#ifndef e_invalidid | ||
+#define e_invalidid gs_error_invalidid | ||
+#endif | ||
+ | ||
#ifdef WIN32 | ||
#define NUL_FILE "nul" | ||
#else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters