diff options
author | Roland McGrath <roland@gnu.org> | 1995-10-17 02:14:34 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-10-17 02:14:34 +0000 |
commit | cb2f05ed72575a2d5769a7772a935eda461ad0b8 (patch) | |
tree | 3e055198b66c8ed92e76858950c87626cfb6bd33 /libc-symbols.h | |
parent | d17e960c2bb10746bda675deb88d8b496f834eba (diff) | |
download | glibc-cb2f05ed72575a2d5769a7772a935eda461ad0b8.zip glibc-cb2f05ed72575a2d5769a7772a935eda461ad0b8.tar.gz glibc-cb2f05ed72575a2d5769a7772a935eda461ad0b8.tar.bz2 |
* locale/Makefile (aux): Add SYS_libc.
* locale/SYS_libc.c: New file.
* libc-symbols.h (_): New macro.
* configure.in (libc_cv_asm_set_directive): Link program into
conftest instead of letting it default to a.out.
Diffstat (limited to 'libc-symbols.h')
-rw-r--r-- | libc-symbols.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libc-symbols.h b/libc-symbols.h index 1b6d1d0..7997c8d 100644 --- a/libc-symbols.h +++ b/libc-symbols.h @@ -46,7 +46,26 @@ Cambridge, MA 02139, USA. */ tests this symbol to see if it is being compiled as part of the C library. */ #define _LIBC 1 +/* + + + Define the macro `_' for conveniently marking translatable strings + in the libc source code. */ +#include <libintl.h> +extern const char _libc_intl_domainname[]; +#ifdef dgettext +/* This is defined as an optimizing macro, so use it. */ +#define _(msgid) dgettext (_libc_intl_domainname, (msgid)) +#else +/* Be sure to use only the __ name when `dgettext' is a plain function + instead of an optimizing macro. */ +#define _(msgid) __dgettext (_libc_intl_domainname, (msgid)) +#endif + +/* + +*/ /* The symbols in all the user (non-_) macros are C symbols. Predefined should be HAVE_WEAK_SYMBOLS and/or HAVE_ELF and/or HAVE_GNU_LD. HAVE_WEAK_SYMBOLS is implied by the other two. HAVE_GNU_LD without |