]> Savannah Git Hosting - gnulib.git/commitdiff
xbinary-io: Fix build error.
authorBruno Haible <bruno@clisp.org>
Sat, 22 Apr 2017 10:02:38 +0000 (12:02 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 22 Apr 2017 10:05:04 +0000 (12:05 +0200)
* modules/xbinary-io (Depends-on): Add gettext-h.
* lib/xbinary-io.c: Include gettext.h and define _().
Reported by Gisle Vanem <gisle.vanem@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.

ChangeLog
lib/xbinary-io.c
modules/xbinary-io

index 9cf5636449c5269bf6a780c0c51ba6901cd82fec..4b92ba228c6223f52257bb67e08fba3c113a321f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-04-22  Bruno Haible  <bruno@clisp.org>
+
+       xbinary-io: Fix build error.
+       * modules/xbinary-io (Depends-on): Add gettext-h.
+       * lib/xbinary-io.c: Include gettext.h and define _().
+       Reported by Gisle Vanem <gisle.vanem@gmail.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
+
 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
 
        parse-datetime: overflow and debug cleanups
index 7f765f1ec52c466e8594844dc659b5efccfe4ba0..b51566ba8dd1a065cb236aa3bb91c2f60526d755 100644 (file)
@@ -25,6 +25,9 @@
 #include "exitfail.h"
 #include "verify.h"
 
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
 #if O_BINARY
 
 _Noreturn void
index 5344805fc5d622a32b33183938c24e4f2ae35e1f..7618e375cfd52e14c0d88d98dd724832f267a2c6 100644 (file)
@@ -10,6 +10,7 @@ binary-io
 error
 exitfail
 extern-inline
+gettext-h
 stdbool
 verify