From: Richard Jones Date: Sun, 21 Mar 2010 19:30:52 +0000 (+0000) Subject: Mac OS X: Detect bindtextdomain. X-Git-Tag: 1.0.87~26 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7581672c7893fd392ca10b47f044af327011f502;p=libguestfs.git 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. --- 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)