summaryrefslogtreecommitdiffstats
path: root/src/keys.h
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-01-23 21:09:21 +0000
committerFrederic Culot <calcurse@culot.org>2009-01-23 21:09:21 +0000
commit9abf70b4a66171904cf8040c0808ee788ccd47f9 (patch)
tree80ecc6e3221c3db8de3b508fe636edb2a1949a06 /src/keys.h
parent08aaf496fce35c4335dab19a4426442153592840 (diff)
downloadcalcurse-9abf70b4a66171904cf8040c0808ee788ccd47f9.tar.gz
calcurse-9abf70b4a66171904cf8040c0808ee788ccd47f9.zip
ability to link against ncursesw if ncurses is not found
Diffstat (limited to 'src/keys.h')
-rwxr-xr-xsrc/keys.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/keys.h b/src/keys.h
index 7d108c8..35d394f 100755
--- a/src/keys.h
+++ b/src/keys.h
@@ -1,4 +1,4 @@
-/* $calcurse: keys.h,v 1.9 2009/01/03 21:32:11 culot Exp $ */
+/* $calcurse: keys.h,v 1.10 2009/01/23 21:09:21 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -27,7 +27,19 @@
#ifndef CALCURSE_KEYS_H
#define CALCURSE_KEYS_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifdef HAVE_NCURSES_H
#include <ncurses.h>
+#elif defined HAVE_NCURSES_NCURSES_H
+#include <ncurses/ncurses.h>
+#elif defined HAVE_NCURSESW_NCURSES_H
+#include <ncursesw/ncurses.h>
+#else
+#error "Missing ncurses header. Aborting..."
+#endif
#define CTRLVAL 0x1F
#define CTRL(x) ((x) & CTRLVAL)