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]

[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;

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