From c1f247d0f23173c77a350324ddf0495ffb935860 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 19 Nov 2019 17:55:43 +0100 Subject: guard against multiple-inclusion of headers --- uart.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'uart.h') diff --git a/uart.h b/uart.h index 6430cb1..ec29d47 100644 --- a/uart.h +++ b/uart.h @@ -1,3 +1,6 @@ +#ifndef UART_H +#define UART_H + #include #include #include @@ -39,3 +42,5 @@ void uart_init(); void uart_putc(unsigned char c); unsigned char uart_getc(); void uart_puts(const char* str); + +#endif // UART_H -- cgit v1.2.3