[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] add a missing include header guard.
From: |
guy fleury iteriteka |
Subject: |
[PATCH] add a missing include header guard. |
Date: |
Sat, 9 Jan 2021 20:01:49 +0200 |
* i386/i386at/comreg.h: Add header guard angaist multiple inclusion.
---
i386/i386at/comreg.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/i386/i386at/comreg.h b/i386/i386at/comreg.h
index 12174a1..7356574 100644
--- a/i386/i386at/comreg.h
+++ b/i386/i386at/comreg.h
@@ -52,6 +52,9 @@ NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUR OF OR IN
CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef _COMREG_H_
+#define _COMREG_H_
+
#define TXRX(addr) (addr + 0)
#define BAUD_LSB(addr) (addr + 0)
#define BAUD_MSB(addr) (addr + 1)
@@ -132,3 +135,5 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define iFIFO4CH 0x40 /* Receive fifo trigger level 4
chars*/
#define iFIFO8CH 0x80 /* Receive fifo trigger level 8
chars*/
#define iFIFO14CH 0xc0 /* Receive fifo trigger level
14 chars*/
+
+#endif /* _COMREG_H_ */
--
2.20.1
- [PATCH] add a missing include header guard.,
guy fleury iteriteka <=