From 18ea3bfa8059ab859a758a65fd006327f1da31fd Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 12 Aug 2019 11:54:57 +0200 Subject: [PATCH] nrf52_bsim: Add missing header guard and extern C block Add a missing header guard and an extern "C" block in one of the nrf52_bsim headers Signed-off-by: Alberto Escolar Piedras --- boards/posix/nrf52_bsim/cmdline.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boards/posix/nrf52_bsim/cmdline.h b/boards/posix/nrf52_bsim/cmdline.h index de90d695e1a..58bc427c100 100644 --- a/boards/posix/nrf52_bsim/cmdline.h +++ b/boards/posix/nrf52_bsim/cmdline.h @@ -17,10 +17,23 @@ * command line arguments is passed to the nrf52_bsim one */ +#ifndef BOARDS_POSIX_NRF52_BSIM_CMDLINE_H +#define BOARDS_POSIX_NRF52_BSIM_CMDLINE_H + #include "../native_posix/cmdline_common.h" +#ifdef __cplusplus +extern "C" { +#endif + static inline void native_add_command_line_opts(struct args_struct_t *args) { void bs_add_extra_dynargs(struct args_struct_t *args); bs_add_extra_dynargs(args); } + +#ifdef __cplusplus +} +#endif + +#endif /* BOARDS_POSIX_NRF52_BSIM_CMDLINE_H */