native_posix: Move include out of extern "C" block
Related to #17997, move an include out of a extern "C" block Background: Declarations that use C linkage should be placed within extern "C" so the language linkage is correct when the header is included by a C++ compiler. Similarly #include directives should be outside the extern "C" to ensure the language-specific default linkage is applied to any declarations provided by the included header. See: https://en.cppreference.com/w/cpp/language/language_linkage Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
18ea3bfa80
commit
66f8075bc6
1 changed files with 1 additions and 2 deletions
|
@ -15,13 +15,12 @@
|
|||
|
||||
#include "hw_models_top.h"
|
||||
#include <stdbool.h>
|
||||
#include "zephyr/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "zephyr/types.h"
|
||||
|
||||
/*
|
||||
* Types of clocks this RTC provides:
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue