summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fish/fish.h7
-rw-r--r--test-tool/test-tool.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index 8b3bdbc0..c4b1a459 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -30,6 +30,13 @@
#define N_(str) str
#endif
+#if !ENABLE_NLS
+#undef textdomain
+#define textdomain(Domainname) /* empty */
+#undef bindtextdomain
+#define bindtextdomain(Domainname, Dirname) /* empty */
+#endif
+
#define STREQ(a,b) (strcmp((a),(b)) == 0)
#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c
index cc47c018..78a608f9 100644
--- a/test-tool/test-tool.c
+++ b/test-tool/test-tool.c
@@ -41,6 +41,13 @@
#define N_(str) str
#endif
+#if !ENABLE_NLS
+#undef textdomain
+#define textdomain(Domainname) /* empty */
+#undef bindtextdomain
+#define bindtextdomain(Domainname, Dirname) /* empty */
+#endif
+
#define STREQ(a,b) (strcmp((a),(b)) == 0)
#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
#define STRNEQ(a,b) (strcmp((a),(b)) != 0)