From 269ea8aaf5d3fc2b9e577b09e217dc0ed051dd2b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 12 Mar 2022 16:57:51 +0000 Subject: [PATCH] Move predeclaration of struct unicode_data into defs.h. It's just the sort of thing that ought to be in there, once, so it doesn't have to be declared in n places. --- defs.h | 2 ++ unix/platform.h | 1 - windows/platform.h | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defs.h b/defs.h index 45bc90f3..3c30b6b6 100644 --- a/defs.h +++ b/defs.h @@ -192,6 +192,8 @@ typedef struct logblank_t logblank_t; typedef struct BinaryPacketProtocol BinaryPacketProtocol; typedef struct PacketProtocolLayer PacketProtocolLayer; +struct unicode_data; + /* Do a compile-time type-check of 'to_check' (without evaluating it), * as a side effect of returning the value 'to_return'. Note that * although this macro double-*expands* to_return, it always diff --git a/unix/platform.h b/unix/platform.h index 6dff7842..7cdf4d11 100644 --- a/unix/platform.h +++ b/unix/platform.h @@ -347,7 +347,6 @@ char *make_dir_path(const char *path, mode_t mode); /* * Exports from unicode.c. */ -struct unicode_data; bool init_ucs(struct unicode_data *ucsdata, char *line_codepage, bool utf8_override, int font_charset, int vtmode); diff --git a/windows/platform.h b/windows/platform.h index 6900a3c6..d15e1a68 100644 --- a/windows/platform.h +++ b/windows/platform.h @@ -606,7 +606,6 @@ void EnableSizeTip(bool bEnable); /* * Exports from unicode.c. */ -struct unicode_data; void init_ucs(Conf *, struct unicode_data *); /*