unittest: add C++ support
Some of the struct in the unit test's cpu.h header were empty which isn't allowed in C++. Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
parent
fae9923ff2
commit
c585df4996
1 changed files with 10 additions and 0 deletions
|
@ -6,17 +6,27 @@
|
|||
|
||||
/* This file exists as a hack around Zephyr's dependencies */
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Architecture thread structure */
|
||||
struct _callee_saved {
|
||||
#ifdef CONFIG_CPLUSPLUS
|
||||
/* C++ does not allow empty structs, add an extra 1 byte */
|
||||
uint8_t c;
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct _callee_saved _callee_saved_t;
|
||||
|
||||
struct _thread_arch {
|
||||
#ifdef CONFIG_CPLUSPLUS
|
||||
/* C++ does not allow empty structs, add an extra 1 byte */
|
||||
uint8_t c;
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct _thread_arch _thread_arch_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue