aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-11-26 17:45:08 +0000
committerRoland McGrath <roland@gnu.org>1995-11-26 17:45:08 +0000
commitf45e34fcaea4f89dc44491a8ff254e24812f95c6 (patch)
tree111a272988b30cf1c2cccf6ce46d486f81cfbfd5
parentcbd3dceb398526fda2fc62674dc873c5c8f5b38d (diff)
downloadglibc-f45e34fcaea4f89dc44491a8ff254e24812f95c6.zip
glibc-f45e34fcaea4f89dc44491a8ff254e24812f95c6.tar.gz
glibc-f45e34fcaea4f89dc44491a8ff254e24812f95c6.tar.bz2
Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* libc-symbols.h (N_): New macro.
-rw-r--r--ChangeLog4
-rw-r--r--libc-symbols.h10
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d3606f..a53bd88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+
+ * libc-symbols.h (N_): New macro.
+
Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
* assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
diff --git a/libc-symbols.h b/libc-symbols.h
index c895fe4..9d6c2f8 100644
--- a/libc-symbols.h
+++ b/libc-symbols.h
@@ -51,10 +51,15 @@ Cambridge, MA 02139, USA. */
*/
#ifndef ASSEMBLER
-/* Define the macro `_' for conveniently marking translatable strings
- in the libc source code. */
+
+/* Define the macros `_' and `N_' for conveniently marking translatable
+ strings in the libc source code. */
+
+#define N_(msgid) msgid
+
#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))
@@ -63,6 +68,7 @@ extern const char _libc_intl_domainname[];
instead of an optimizing macro. */
#define _(msgid) __dgettext (_libc_intl_domainname, (msgid))
#endif
+
#endif
/*