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:
Alberto Escolar Piedras 2019-08-12 11:56:05 +02:00 committed by Alberto Escolar
commit 66f8075bc6

View file

@ -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:
*/