Skip to content

Commit fbbf2c2

Browse files
committed
Do not include ncurses.h if ncurses are disabled.
1 parent 33ae48a commit fbbf2c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

appmenu.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3535
#include "ui.h"
3636
#include "wavebank.h"
3737

38+
#if USE_NCURSES
39+
3840
#include <assert.h>
3941
#include <glib.h>
4042
#include <glob.h>
@@ -46,8 +48,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4648
#include <string.h>
4749
#include <unistd.h>
4850

49-
#if USE_NCURSES
50-
5151
int cmd_quit(struct cbox_menu_item_command *item, void *context)
5252
{
5353
return 1;

menu.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
#include "menuitem.h"
2121
#include "ui.h"
2222

23+
#if USE_NCURSES
24+
2325
#include <assert.h>
2426
#include <glib.h>
2527
#include <malloc.h>
2628
#include <ncurses.h>
2729
#include <string.h>
2830

29-
#if USE_NCURSES
30-
3131
struct cbox_menu
3232
{
3333
GPtrArray *items;

0 commit comments

Comments
 (0)