Skip to content

Commit

Permalink
[amorphos] Fix cmake build for guestlib
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhc committed Jan 17, 2021
1 parent d27abc2 commit a5f632f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion amorphos/f1_host/ava_aos_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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

0 comments on commit a5f632f

Please sign in to comment.