blob: d97d4ecd7db851e50a6895b2906e19db586724e1 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001base/genht.c: add a preprocessor define to allow fopen calling
2
3The commit in upstream:
4http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643
5
6Replace all fopen calls with gp_fopen and add a preprocessor define so
7that any unintential calls directly to fopen will cause an error.
8
9Only exceptions are those in the platform specific code, and mkromfs.c.
10This patch add a preprocessor define to allow fopen calling in base/genht.c.
11
12Upstream-Status: Pending
13
14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
15---
16 base/genht.c | 4 ++++
17 1 file changed, 4 insertions(+)
18
19diff --git a/base/genht.c b/base/genht.c
20index 4b04085..cc82fff 100644
21--- a/base/genht.c
22+++ b/base/genht.c
23@@ -16,6 +16,10 @@
24
25 /* Generate C code for compiling halftones into ROM. */
26 #include "malloc_.h"
27+
28+/* prevent gp.h from defining fopen */
29+#define fopen fopen
30+
31 #include "stdio_.h"
32 #include "string_.h"
33 #include "gscdefs.h"
34--
351.8.1.2
36