Wrap public header in extern C

pull/7/head
nirenjan 2015-12-05 23:22:11 -08:00
parent 531c92ecab
commit f2ee9707cb
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#include <time.h>
#include <stdint.h>
#ifndef __cplusplus
extern "C" {
#endif
/**
* @brief Opaque structure used by libx52
*/
@ -309,4 +313,8 @@ int libx52_update(libx52_device *x52);
*/
int libx52_vendor_command(libx52_device *x52, uint16_t index, uint16_t value);
#ifndef __cplusplus
}
#endif
#endif /* !defined LIBX52_H */