diff --git a/amorphos/f1_host/ava_aos_wrapper.h b/amorphos/f1_host/ava_aos_wrapper.h index 80846a4..b7046a2 100644 --- a/amorphos/f1_host/ava_aos_wrapper.h +++ b/amorphos/f1_host/ava_aos_wrapper.h @@ -2,11 +2,14 @@ #define __AVA_AOS_WRAPPER_H__ #ifndef __CAVA__ -#include "aos.h" +#ifdef __cplusplus +#include "aos.h" extern "C" { #endif +#endif + struct aos_client_wrapper; struct aos_client_wrapper *ava_client_new(uint64_t app_id); @@ -15,7 +18,9 @@ int ava_cntrlreg_write(struct aos_client_wrapper *client_handle, uint64_t addr, int ava_cntrlreg_read(struct aos_client_wrapper *client_handle, uint64_t addr, uint64_t *value); #ifndef __CAVA__ +#ifdef __cplusplus } #endif +#endif #endif