mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
libserialport: Allow C++ frontends to use the lib easily.
This commit is contained in:
parent
f92f1f0c20
commit
5ef8a1ed7f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user