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 */