emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No Gettext on Some Platforms


From: Andrew Choi
Subject: No Gettext on Some Platforms
Date: Fri, 06 Dec 2002 10:45:24 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

A recent change to lib-src/getopt.c causes link failure on platforms
without gettext installed.  Please consider the following fix.

Index: getopt.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/getopt.c,v
retrieving revision 1.21
diff -u -r1.21 getopt.c
--- getopt.c    5 Dec 2002 15:30:09 -0000       1.21
+++ getopt.c    6 Dec 2002 17:32:51 -0000
@@ -83,7 +83,11 @@
 # include "gettext.h"
 #endif
 #endif
+#ifdef HAVE_LIBINTL_H
 #define _(msgid) gettext (msgid)
+#else
+#define _(msgid) (msgid)
+#endif
 
 #if defined _LIBC && defined USE_IN_LIBIO
 # include <wchar.h>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]