Add include guard.

This commit is contained in:
Martin Ling 2013-10-27 15:42:08 +00:00 committed by Uwe Hermann
parent 4b97c9fc26
commit e8ffaee986
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef SERIALPORT_H
#define SERIALPORT_H
#include <stddef.h> #include <stddef.h>
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #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); int sp_last_error_code(void);
char *sp_last_error_message(void); char *sp_last_error_message(void);
void sp_free_error_message(char *message); void sp_free_error_message(char *message);
#endif /* SERIALPORT_H */