Add missing definition of _ macro.
authorBruno Haible <bruno@clisp.org>
Sat, 21 Jul 2007 08:10:38 +0000 (08:10 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 21 Jul 2007 08:10:38 +0000 (08:10 +0000)
ChangeLog
lib/error.c
lib/verror.c

index 67135f9d117d2803146a58f788c1c9e2905fad1b..dbca61064339a0d985996adc9e07fd46a46fc189 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
+       * lib/verror.c (_) [ENABLE_NLS]: Likewise.
+
 2007-07-20  Jim Meyering  <jim@meyering.net>
 
        * check-module: Diagnose a self-dependency.
index cf8634332020392497c23a438eef02aaaa0c71eb..9cf67ff904565f3aa7bfb268348fdaf24c6cf518 100644 (file)
@@ -1,5 +1,5 @@
 /* Error handler for noninteractive utilities
-   Copyright (C) 1990-1998, 2000-2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1990-1998, 2000-2007 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
@@ -31,6 +31,7 @@
 
 #if !_LIBC && ENABLE_NLS
 # include "gettext.h"
+# define _(msgid) gettext (msgid)
 #endif
 
 #ifdef _LIBC
index 531e4edb5fcdc7e0b7d0b5a647de465d8382574b..a664a89d4381de6e5539f52e3242831ffd1d7ce1 100644 (file)
@@ -1,5 +1,5 @@
 /* va_list error handler for noninteractive utilities
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006-2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -28,6 +28,7 @@
 
 #if ENABLE_NLS
 # include "gettext.h"
+# define _(msgid) gettext (msgid)
 #endif
 
 #ifndef _