Specify languages and allow C++ usage

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-04-05 22:51:55 +02:00
parent c96c9f0f8c
commit 8ea326e429
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
6 changed files with 34 additions and 4 deletions

View file

@ -23,8 +23,19 @@
// THE SOFTWARE.
//
#ifndef __cplusplus
#include <stdbool.h>
#endif
#ifndef __cplusplus
#include <stdint.h>
#else
#include <cstdint.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
struct __attribute__((__packed__)) device3_packet_t {
uint8_t signature [2];
@ -133,3 +144,7 @@ device3_quat_type device3_get_orientation(const device3_ahrs_type* ahrs);
device3_vec3_type device3_get_euler(device3_quat_type quat);
void device3_close(device3_type* device);
#ifdef __cplusplus
} // extern "C"
#endif