blob: 7d80066a80eaa653c93231c92daa8da67f167516 [file] [log] [blame]
From 9ca6f795409b988d38dd98bc2a6ecb68a9392312 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Thu, 29 Mar 2018 16:37:40 +0800
Subject: [PATCH 10/10] base/genht.c: add a preprocessor define to allow fopen
calling
The commit in upstream:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=773c69e46e70bdd5482676437dafd2ca83397643
Replace all fopen calls with gp_fopen and add a preprocessor define so
that any unintential calls directly to fopen will cause an error.
Only exceptions are those in the platform specific code, and mkromfs.c.
This patch add a preprocessor define to allow fopen calling in
base/genht.c.
Upstream-Status: Pending
Rebase to 9.23
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
base/genht.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/base/genht.c b/base/genht.c
index e597e72..e96bfb5 100644
--- a/base/genht.c
+++ b/base/genht.c
@@ -16,6 +16,10 @@
/* Generate C code for compiling halftones into ROM. */
#include "malloc_.h"
+
+/* prevent gp.h from defining fopen */
+#define fopen fopen
+
#include "stdio_.h"
#include "string_.h"
#include "gscdefs.h"
--
1.8.3.1