]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1363 v7.4.1363
authorBram Moolenaar <Bram@vim.org>
Sat, 20 Feb 2016 12:08:46 +0000 (13:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 20 Feb 2016 12:08:46 +0000 (13:08 +0100)
Problem:    Compiler warnings with tiny build.
Solution:   Add #ifdefs.

src/gui_w32.c
src/gui_w48.c
src/version.c

index b496166e3f69e1ab8f5349ba6d6ed92c2fb4a766..feeb6d402cb650c34e9c00029cd30b91d6957578 100644 (file)
@@ -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;
index 4b755bd8fd3d551bda183ba92a17d32a35013c05..eff3f3f80236a69b44f360d27ad2516be4ffc740 100644 (file)
@@ -138,7 +138,6 @@ typedef int WNDPROC;
 
 static void _OnPaint( HWND hwnd);
 static void clear_rect(RECT *rcp);
-static int gui_mswin_get_menu_height(int fix_window);
 
 static WORD            s_dlgfntheight;         /* height of the dialog font */
 static WORD            s_dlgfntwidth;          /* width of the dialog font */
@@ -342,7 +341,7 @@ static LOGFONT sub_logfont;
 static LRESULT _OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData);
 #endif
 
-#if defined(FEAT_MBYTE) && defined(WIN3264)
+#if defined(FEAT_BROWSE)
 static char_u *convert_filter(char_u *s);
 #endif
 
index 766937d6eff460433ebc2b3192687bddb5605aea..d2ae1ae6d3a239b762db52185a22a5ff195ecd96 100644 (file)
@@ -747,6 +747,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1363,
 /**/
     1362,
 /**/