From: Uwe Hermann Date: Fri, 22 Nov 2013 10:59:12 +0000 (+0100) Subject: Add missing #include guards. X-Git-Tag: libserialport-0.1.0~77 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8645feda604fadd077990dcbf90d687464fa9900;p=libserialport.git Add missing #include guards. --- diff --git a/libserialport.h.in b/libserialport.h.in index e4109a9..85fd098 100644 --- a/libserialport.h.in +++ b/libserialport.h.in @@ -64,8 +64,8 @@ * or where otherwise documented a positive value. */ -#ifndef LIBSERIALPORT_H -#define LIBSERIALPORT_H +#ifndef LIBSERIALPORT_LIBSERIALPORT_H +#define LIBSERIALPORT_LIBSERIALPORT_H #ifdef __cplusplus extern "C" { @@ -630,4 +630,4 @@ void sp_free_error_message(char *message); } #endif -#endif /* LIBSERIALPORT_H */ +#endif diff --git a/linux_termios.h b/linux_termios.h index 1e1c7d7..cb2ed9d 100644 --- a/linux_termios.h +++ b/linux_termios.h @@ -17,6 +17,9 @@ * along with this program. If not, see . */ +#ifndef LIBSERIALPORT_LINUX_TERMIOS_H +#define LIBSERIALPORT_LINUX_TERMIOS_H + #define RTS_FLOW 1 #define CTS_FLOW 2 #define DTR_FLOW 4 @@ -30,3 +33,5 @@ void set_termios_speed(void *data, int speed); int get_termiox_size(void); int get_termiox_flow(void *data); void set_termiox_flow(void *data, int flags); + +#endif