From: Martin Ling Date: Sun, 27 Oct 2013 15:42:08 +0000 (+0000) Subject: Add include guard. X-Git-Tag: libserialport-0.1.0~159 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e8ffaee986f4e77ce1d949971e1d9b8acc2fc831;p=libserialport.git Add include guard. --- 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 */