summaryrefslogtreecommitdiffstats
path: root/src/gui_w32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-20 13:08:46 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-20 13:08:46 +0100
commit065bbac8adfe29a09958570237d223457f235c6c (patch)
tree76c8635ba80d6a43d19a3b8ed912ec0cb3e568ed /src/gui_w32.c
parent8600ace87618d33ad3182124be447f0b2c9728f4 (diff)
patch 7.4.1363v7.4.1363
Problem: Compiler warnings with tiny build. Solution: Add #ifdefs.
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r--src/gui_w32.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index b496166e3f..feeb6d402c 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -36,6 +36,10 @@ static int s_directx_load_attempted = 0;
# define IS_ENABLE_DIRECTX() (s_directx_enabled && s_dwc != NULL)
#endif
+#ifdef FEAT_MENU
+static int gui_mswin_get_menu_height(int fix_window);
+#endif
+
#if defined(FEAT_DIRECTX) || defined(PROTO)
int
directx_enabled(void)
@@ -458,7 +462,9 @@ static UINT s_menu_id = 100;
* stuff for dialogs, menus, tearoffs etc.
*/
static LRESULT APIENTRY dialog_callback(HWND, UINT, WPARAM, LPARAM);
+#ifdef FEAT_TEAROFF
static LRESULT APIENTRY tearoff_callback(HWND, UINT, WPARAM, LPARAM);
+#endif
static PWORD
add_dialog_element(
PWORD p,
@@ -472,7 +478,9 @@ add_dialog_element(
const char *caption);
static LPWORD lpwAlign(LPWORD);
static int nCopyAnsiToWideChar(LPWORD, LPSTR);
+#if defined(FEAT_MENU) && defined(FEAT_TEAROFF)
static void gui_mch_tearoff(char_u *title, vimmenu_T *menu, int initX, int initY);
+#endif
static void get_dialog_font_metrics(void);
static int dialog_default_button = -1;