]> sigrok.org Git - libserialport.git/commitdiff
Add include guard.
authorMartin Ling <redacted>
Sun, 27 Oct 2013 15:42:08 +0000 (15:42 +0000)
committerUwe Hermann <redacted>
Thu, 14 Nov 2013 23:42:37 +0000 (00:42 +0100)
serialport.h

index ffe6350a719d743ccc6d57aaed05ded54e45718e..4e79340bfb6c808c4a2bf6533532b6117313cc80 100644 (file)
@@ -17,6 +17,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifndef SERIALPORT_H
+#define SERIALPORT_H
+
 #include <stddef.h>
 #ifdef _WIN32
 #include <windows.h>
@@ -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 */