summaryrefslogtreecommitdiff
path: root/base/gxchar.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2019-04-03 03:28:01 -0700
committerRobin Watts <Robin.Watts@artifex.com>2019-04-03 12:13:23 +0100
commit76c6de5428936c8fdb7269d7fcc31d4bdc83d745 (patch)
treecf6614563330fe22439fcf2602ecb02a99ae0c54 /base/gxchar.h
parent7146b7292e27acc54d23b48472f6851ae9b51d8c (diff)
downloadghostpdl-76c6de5428936c8fdb7269d7fcc31d4bdc83d745.tar.gz
Fix problems with "typedef struct foo_s foo;" redefinitions.
In the header revamp, I'd left various places where we use the above formulation in more than one location. This is fine with all the C compilers I tested it on, but seems to update gcc 4.1.2. This effect can be seen on later gcc's by using "-std=gnu89 -pedantic". This commit tweaks the code to avoid redefinitions of this kind.
Diffstat (limited to 'base/gxchar.h')
-rw-r--r--base/gxchar.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/base/gxchar.h b/base/gxchar.h
index 703461fa4..8200d8ef1 100644
--- a/base/gxchar.h
+++ b/base/gxchar.h
@@ -36,9 +36,6 @@ struct gs_show_enum_s {
/* Get the current character code. */
int gx_current_char(const gs_text_enum_t * pte);
-/* Cached character procedures (in gxccache.c and gxccman.c) */
-typedef struct gs_font_dir_s gs_font_dir;
-
int gx_alloc_char_bits(gs_font_dir *, gx_device_memory *, gx_device_memory *, ushort, ushort, const gs_log2_scale_point *, int, cached_char **);
void gx_open_cache_device(gx_device_memory *, cached_char *);
void gx_free_cached_char(gs_font_dir *, cached_char *);