diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2019-04-03 03:28:01 -0700 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2019-04-03 12:13:23 +0100 |
commit | 76c6de5428936c8fdb7269d7fcc31d4bdc83d745 (patch) | |
tree | cf6614563330fe22439fcf2602ecb02a99ae0c54 /base/gxfont.h | |
parent | 7146b7292e27acc54d23b48472f6851ae9b51d8c (diff) | |
download | ghostpdl-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/gxfont.h')
-rw-r--r-- | base/gxfont.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/base/gxfont.h b/base/gxfont.h index 9790cb12f..53edcdeb8 100644 --- a/base/gxfont.h +++ b/base/gxfont.h @@ -32,11 +32,6 @@ #include "gsfcmap.h" #include "gxfapi.h" -/* A font object as seen by clients. */ -/* See the PostScript Language Reference Manual for details. */ - -typedef struct gs_show_enum_s gs_show_enum; - /* * Define flags for font properties (Flags* members in the structure below.) * Currently these must match the ones defined for PDF. @@ -443,8 +438,6 @@ int gs_font_notify_register(gs_font *font, gs_notify_proc_t proc, int gs_font_notify_unregister(gs_font *font, gs_notify_proc_t proc, void *proc_data); -typedef struct gs_fapi_server_s gs_fapi_server; - /* Define a base (not composite) font. */ #define gs_font_base_common\ gs_font_common;\ |