From e8ffaee986f4e77ce1d949971e1d9b8acc2fc831 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Sun, 27 Oct 2013 15:42:08 +0000 Subject: [PATCH] Add include guard. --- serialport.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/serialport.h b/serialport.h index ffe6350..4e79340 100644 --- a/serialport.h +++ b/serialport.h @@ -17,6 +17,9 @@ * along with this program. If not, see . */ +#ifndef SERIALPORT_H +#define SERIALPORT_H + #include #ifdef _WIN32 #include @@ -76,3 +79,5 @@ int sp_set_params(struct sp_port *port, int baudrate, int bits, int parity, int sp_last_error_code(void); char *sp_last_error_message(void); void sp_free_error_message(char *message); + +#endif /* SERIALPORT_H */