mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #4035: fix compile failure on OS X 10.9.
Fix duplication of menu_map definition. Move menu_map definition to lib/widget/menu.c. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e022f5f4e5
commit
093571938a
@ -46,7 +46,7 @@
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
const global_keymap_t *menu_map;
|
||||
const global_keymap_t *menu_map = NULL;
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
||||
|
@ -39,6 +39,8 @@ typedef struct WMenuBar
|
||||
|
||||
/*** global variables defined in .c file *********************************************************/
|
||||
|
||||
extern const global_keymap_t *menu_map;
|
||||
|
||||
/*** declarations of public functions ************************************************************/
|
||||
|
||||
menu_entry_t *menu_entry_create (const char *name, long command);
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include "lib/global.h"
|
||||
#include "lib/widget.h" /* dialog_map, input_map, listbox_map */
|
||||
#include "lib/widget.h" /* dialog_map, input_map, listbox_map, menu_map */
|
||||
|
||||
#include "keybind-defaults.h"
|
||||
|
||||
@ -56,7 +56,6 @@ GArray *diff_keymap = NULL;
|
||||
const global_keymap_t *main_map = NULL;
|
||||
const global_keymap_t *main_x_map = NULL;
|
||||
const global_keymap_t *panel_map = NULL;
|
||||
const global_keymap_t *menu_map = NULL;
|
||||
const global_keymap_t *tree_map = NULL;
|
||||
const global_keymap_t *help_map = NULL;
|
||||
|
||||
|
@ -35,7 +35,6 @@ extern GArray *diff_keymap;
|
||||
extern const global_keymap_t *main_map;
|
||||
extern const global_keymap_t *main_x_map;
|
||||
extern const global_keymap_t *panel_map;
|
||||
extern const global_keymap_t *menu_map;
|
||||
extern const global_keymap_t *tree_map;
|
||||
extern const global_keymap_t *help_map;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user