Skip to content
Snippets Groups Projects
Commit 352db463 authored by deuce's avatar deuce
Browse files

Add new DEBIAN_HATES_YOU define for people using Debian where the "real"

ncurses.h is installed as /usr/include/ncursesw/ncurses.h
parent 61f57417
Branches
Tags
No related merge requests found
...@@ -42,6 +42,10 @@ ifeq ($(os),netbsd) ...@@ -42,6 +42,10 @@ ifeq ($(os),netbsd)
endif endif
endif endif
ifeq ($(shell [ -e /usr/include/ncursesw/ncurses.h ] ; then echo YES ; fi),YES)
CFLAGS += -DDEBIAN_HATES_YOU
endif
ifdef NEED_BITMAP ifdef NEED_BITMAP
OBJS += $(MTOBJODIR)$(DIRSEP)bitmap_con$(OFILE) OBJS += $(MTOBJODIR)$(DIRSEP)bitmap_con$(OFILE)
endif endif
......
...@@ -34,14 +34,16 @@ ...@@ -34,14 +34,16 @@
#define NCURSES_WIDECHAR 1 #define NCURSES_WIDECHAR 1
#ifdef XCURSES #ifdef XCURSES
#include <xcurses.h> #include <xcurses.h>
#endif #else
#ifdef N_CURSES_LIB
#ifdef N_CURSES_LIB #include <ncurses.h>
#include <ncurses.h> #else
#endif #ifdef DEBIAN_HATES_YOU
#include <ncursesw/ncurses.h>
#if defined(CURSES_LIB) || (!defined(XCURSES)&&!defined(N_CURSES_LIB)) #else
#include <curses.h> #include <curses.h>
#endif
#endif
#endif #endif
#ifndef ACS_SBSD #ifndef ACS_SBSD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment