zephyr/include/drivers/console
Peter Bigot 6554a5e5b6 include: rearrange for standard use of extern "C" in various headers
Consistently place C++ use of extern "C" after all include directives,
within the negative branch of _ASMLANGUAGE if used.

The inclusion of the generated syscall files is placed outside the
extern "C" block as the generated file has its own extern "C" block.

Background from issue #17997:

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: Peter Bigot <peter.bigot@nordicsemi.no>
2019-08-13 18:00:31 +02:00
..
console.h lifo/fifo: first word is not always first 4 bytes 2019-06-26 09:08:42 -04:00
ipm_console.h cleanup: include/: move ring_buffer.h to sys/ring_buffer.h 2019-06-27 22:55:49 -04:00
native_posix_console.h drivers: console: native: header fix 2018-10-15 09:36:37 -04:00
uart_console.h include: rearrange for standard use of extern "C" in various headers 2019-08-13 18:00:31 +02:00
uart_mcumgr.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
uart_pipe.h include: Add missing headers guard 2018-09-17 15:49:26 -04:00