This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]opcodes/i386-gen.c: fix missing #ifdef ENABLE_NLS


Hello,

I have realized that there're two issues with the previous patch:

1. I have forgot to update ChangeLog for opcodes.
2. Attaching + inlining the patch was a bad idea.

Please, find the updated patch attached.

Thanks,
Ivan Krasin
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index bbb3138..3fb5a7f 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-30  Ivan Krasin <krasin@chromium.org>
+
+	* i386-gen.c: fix missing #ifdef ENABLE_NLS.
+
 2011-04-26  Anton Blanchard  <anton@samba.org>
 
 	* ppc-opc.c: (powerpc_opcodes): Enable icswx for POWER7.
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index a0d0627..4974cd0 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -28,8 +28,12 @@
 
 #include "i386-opc.h"
 
-#include <libintl.h>
-#define _(String) gettext (String)
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(String) gettext (String)
+#else
+# define _(String) (String)
+#endif
 
 static const char *program_name = NULL;
 static int debug = 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]