From 0a5defb64e94ecb2847b98b2c29155131edeaf97 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 16 Dec 2020 08:00:00 +0000 Subject: Consistently define _(Str) using dgettext ("elfutils", Str) Move the definition of _(Str) macro to lib/eu-config.h which already provides a definition of N_(Str) macro. Since lib/eu-config.h is appended to config.h, it is included into every compilation unit and therefore both macros are now universally available. Remove all other definitions of N_(Str) and _(Str) macros from other files to avoid conflicts and redundancies. The next step is to replace all uses of gettext(Str) with _(Str). Signed-off-by: Dmitry V. Levin --- libelf/libelfP.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'libelf/libelfP.h') diff --git a/libelf/libelfP.h b/libelf/libelfP.h index b8ffa18d..fc1aebec 100644 --- a/libelf/libelfP.h +++ b/libelf/libelfP.h @@ -39,9 +39,6 @@ #include #include -/* gettext helper macros. */ -#define _(Str) dgettext ("elfutils", Str) - /* Helper Macros to write 32 bit and 64 bit functions. */ #define __elfw2_(Bits, Name) __elf##Bits##_##Name -- cgit v1.2.3