This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH]opcodes/i386-gen.c: fix missing #ifdef ENABLE_NLS
- From: Ivan Krasin <krasin at chromium dot org>
- To: binutils at sourceware dot org
- Date: Tue, 30 Aug 2011 03:27:54 -0700
- Subject: [PATCH]opcodes/i386-gen.c: fix missing #ifdef ENABLE_NLS
Hi binutils team!
Please, accept this tiny patch. You can find it attached or inlined.
I would be happy to address any issue, if any.
Thanks,
Ivan Krasin
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;
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;