# HG changeset patch # User Bruno Haible # Date 1185005438 0 # Node ID 8b2acf250f226652e134a9f7e8f83d20b12b6c7e # Parent 5e12596c4187b5d52c2024a625b6ae0088ba141b Add missing definition of _ macro. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-21 Bruno Haible + + * lib/error.c (_) [ENABLE_NLS]: Define to gettext. + * lib/verror.c (_) [ENABLE_NLS]: Likewise. + 2007-07-20 Jim Meyering * check-module: Diagnose a self-dependency. diff --git a/lib/error.c b/lib/error.c --- a/lib/error.c +++ b/lib/error.c @@ -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 diff --git a/lib/verror.c b/lib/verror.c --- a/lib/verror.c +++ b/lib/verror.c @@ -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 _