summaryrefslogtreecommitdiffstats
path: root/test-tool
diff options
context:
space:
mode:
authorRichard Jones <rich@koneko.home.annexia.org>2010-03-21 19:30:52 +0000
committerRichard Jones <rich@koneko.home.annexia.org>2010-03-22 08:48:08 +0000
commit7581672c7893fd392ca10b47f044af327011f502 (patch)
tree7239dee28ac284b742b967e552b63844d67e8476 /test-tool
parentf5d52fa3c00e525cd5d86089b85f970a5c4e7c21 (diff)
downloadlibguestfs-7581672c7893fd392ca10b47f044af327011f502.tar.gz
libguestfs-7581672c7893fd392ca10b47f044af327011f502.tar.xz
libguestfs-7581672c7893fd392ca10b47f044af327011f502.zip
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.
Diffstat (limited to 'test-tool')
-rw-r--r--test-tool/test-tool.c7
1 files changed, 7 insertions, 0 deletions
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)