diff --git a/src/xrt/auxiliary/os/os_hid.h b/src/xrt/auxiliary/os/os_hid.h index 88d906da2..e5f658e1b 100644 --- a/src/xrt/auxiliary/os/os_hid.h +++ b/src/xrt/auxiliary/os/os_hid.h @@ -13,6 +13,10 @@ #include "xrt/xrt_config.h" #include "xrt/xrt_compiler.h" +#ifdef __cplusplus +extern "C" { +#endif + /*! * Representing a single hid interface on a device. @@ -69,3 +73,7 @@ os_hid_destroy(struct os_hid_device *hid_dev) int os_hid_open_hidraw(const char *path, struct os_hid_device **out_hid); #endif + +#ifdef __cplusplus +} // extern "C" +#endif