Add missing extern "C" to header files (closes #104)

This commit is contained in:
Luke Wren
2021-02-09 14:47:16 +00:00
committed by graham sanderson
parent 0f4a5f8e60
commit d4c9dced40
11 changed files with 85 additions and 0 deletions

View File

@ -48,6 +48,10 @@
* leaving the other bits unchanged.
*/
#ifdef __cplusplus
extern "C" {
#endif
#define check_hw_layout(type, member, offset) static_assert(offsetof(type, member) == (offset), "hw offset mismatch")
#define check_hw_size(type, size) static_assert(sizeof(type) == (size), "hw size mismatch")
@ -120,4 +124,8 @@ inline static void hw_write_masked(io_rw_32 *addr, uint32_t values, uint32_t wri
hw_xor_bits(addr, (*addr ^ values) & write_mask);
}
#ifdef __cplusplus
}
#endif
#endif