From 7581672c7893fd392ca10b47f044af327011f502 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sun, 21 Mar 2010 19:30:52 +0000 Subject: [PATCH] Mac OS X: Detect bindtextdomain. These are missing on Mac OS X. I think you would need to install a gettext package to get these. --- fish/fish.h | 7 +++++++ test-tool/test-tool.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/fish/fish.h b/fish/fish.h index 8b3bdbc..c4b1a45 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 cc47c01..78a608f 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) -- 1.8.3.1