* [PATCH] opcodes: blackfin: add multiple inclusion protection
@ 2011-02-11 4:38 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2011-02-11 4:38 UTC (permalink / raw)
To: binutils; +Cc: toolchain-devel
Prevent build errors if the header happens to be included multiple times.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-04 Mike Frysinger <vapier@gentoo.org>
* bfin.h: Add OPCODE_BFIN_H ifdef multiple include protection.
---
include/opcode/bfin.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/include/opcode/bfin.h b/include/opcode/bfin.h
index 819ba6e..4a8a6bc 100755
--- a/include/opcode/bfin.h
+++ b/include/opcode/bfin.h
@@ -1,5 +1,5 @@
/* bfin.h -- Header file for ADI Blackfin opcode table
- Copyright 2005, 2010 Free Software Foundation, Inc.
+ Copyright 2005, 2010, 2011 Free Software Foundation, Inc.
This file is part of GDB, GAS, and the GNU binutils.
@@ -18,6 +18,9 @@
Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
MA 02110-1301, USA. */
+#ifndef OPCODE_BFIN_H
+#define OPCODE_BFIN_H
+
/* Common to all DSP32 instructions. */
#define BIT_MULTI_INS 0x0800
@@ -1725,3 +1728,5 @@ typedef struct
DagMODik_op_bits, DagMODik_op_mask, \
DagMODik_code_bits, DagMODik_code_mask \
};
+
+#endif
--
1.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-11 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 4:38 [PATCH] opcodes: blackfin: add multiple inclusion protection Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).