From 8923a1b488b69e943d241aa3f0373ed3d5f8110e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 3 Feb 2017 19:35:41 +0000 Subject: [PATCH] Move declaration of frontend_is_utf8 into putty.h. It's a function that exists on all platforms, not just on Unix - it's used in ldisc.c - so it shouldn't have been declared only in unix.h. Score another for clang's warnings. --- putty.h | 1 + unix/unix.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/putty.h b/putty.h index 416f8903..fd2d0250 100644 --- a/putty.h +++ b/putty.h @@ -671,6 +671,7 @@ enum { BUSY_CPU /* Locally busy (e.g. crypto); user interaction suspended */ }; void set_busy_status(void *frontend, int status); +int frontend_is_utf8(void *frontend); void cleanup_exit(int); diff --git a/unix/unix.h b/unix/unix.h index 76ec7531..cf297db3 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -125,7 +125,6 @@ void gtkcomm_setup(void); const char *get_x_display(void *frontend); int font_dimension(void *frontend, int which);/* 0 for width, 1 for height */ long get_windowid(void *frontend); -int frontend_is_utf8(void *frontend); /* Things gtkdlg.c needs from pterm.c */ void *get_window(void *frontend); /* void * to avoid depending on gtk.h */ -- 2.45.1