Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Frysinger <vapier@gentoo.org>2011-02-11 20:47:54 +0300
committerMichael Frysinger <vapier@gentoo.org>2011-02-11 20:47:54 +0300
commit0ff9e2473f90cb63ba8b196c7447e57686b967d2 (patch)
treec0335aa6a5b69c68a3a20ef51aeecc463b9c334d /include/opcode
parent41f06f51ac279750d27a1fdf1b0986ad94eb065d (diff)
opcodes: blackfin: add multiple inclusion protection
Prevent build errors if the header happens to be included multiple times. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/ChangeLog4
-rwxr-xr-xinclude/opcode/bfin.h7
2 files changed, 10 insertions, 1 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index b127fd653..968de81bb 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-11 Mike Frysinger <vapier@gentoo.org>
+
+ * bfin.h: Add OPCODE_BFIN_H ifdef multiple include protection.
+
2011-02-04 Bernd Schmidt <bernds@codesourcery.com>
* tic6x-opcode-table.h (cmtl, ll, sl): Available on C64XP.
diff --git a/include/opcode/bfin.h b/include/opcode/bfin.h
index 819ba6ee2..4a8a6bc3a 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