summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am2
-rw-r--r--include/gettext.h8
-rw-r--r--include/gettext_curses.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 112e5ce..7a3968d 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,4 +1,4 @@
-noinst_HEADERS=version.h gettext.h
+noinst_HEADERS=version.h gettext.h gettext_curses.h
version.h: stamp-vh
@:
diff --git a/include/gettext.h b/include/gettext.h
index c2bfe96..d8a1467 100644
--- a/include/gettext.h
+++ b/include/gettext.h
@@ -1,7 +1,13 @@
#ifndef __MY_GETTEXT_H
#define __MY_GETTEXT_H
-#if ENABLE_NLS
+#ifdef USES_CURSES
+#define ENABLE_NLS_TEST ENABLE_NLS_IN_CURSES
+#else
+#define ENABLE_NLS_TEST ENABLE_NLS
+#endif
+
+#if ENABLE_NLS_TEST
# include <libintl.h>
#else
# define gettext(msgid) (msgid)
diff --git a/include/gettext_curses.h b/include/gettext_curses.h
new file mode 100644
index 0000000..f1c4041
--- /dev/null
+++ b/include/gettext_curses.h
@@ -0,0 +1,2 @@
+#define USES_CURSES
+#include "gettext.h"