libserialport: Allow C++ frontends to use the lib easily.

This commit is contained in:
Uwe Hermann 2013-11-14 21:58:03 +01:00
parent f92f1f0c20
commit 5ef8a1ed7f
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,10 @@
#ifndef LIBSERIALPORT_H
#define LIBSERIALPORT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#ifdef _WIN32
#include <windows.h>
@ -95,4 +99,8 @@ int sp_last_error_code(void);
char *sp_last_error_message(void);
void sp_free_error_message(char *message);
#ifdef __cplusplus
}
#endif
#endif /* LIBSERIALPORT_H */