diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-03-02 10:45:38 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-03-02 11:03:45 +0000 |
commit | 439f122f760c0327f60228047652638d769a836c (patch) | |
tree | 508daa9c55730bdbde4e1881c51214eb115bace8 | |
parent | a7bc4ee528c66486e43e815429b4aaf8cf2049d5 (diff) | |
download | qemu-439f122f760c0327f60228047652638d769a836c.zip qemu-439f122f760c0327f60228047652638d769a836c.tar.gz qemu-439f122f760c0327f60228047652638d769a836c.tar.bz2 |
include/hw/or-irq.h: Add missing include guard
The or-irq.h header file is missing the customary guard against
multiple inclusion, which means compilation fails if it gets
included twice. Fix the omission.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180220180325.29818-11-peter.maydell@linaro.org
-rw-r--r-- | include/hw/or-irq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/or-irq.h b/include/hw/or-irq.h index fd900fc..3f6fc1b 100644 --- a/include/hw/or-irq.h +++ b/include/hw/or-irq.h @@ -22,6 +22,9 @@ * THE SOFTWARE. */ +#ifndef HW_OR_IRQ_H +#define HW_OR_IRQ_H + #include "hw/irq.h" #include "hw/sysbus.h" #include "qom/object.h" @@ -41,3 +44,5 @@ struct OrIRQState { bool levels[MAX_OR_LINES]; uint16_t num_lines; }; + +#endif |