C++ : Fix error: template with C linkage

If we include this header files in cpp source code,
the compiler say"error: template with C linkage".

Include <device.h> must be moved outside the 'extern "C"' section.

Signed-off-by: Benoit Leforestier <benoit.leforestier@gmail.com>
This commit is contained in:
Benoit Leforestier 2019-02-09 21:06:13 +01:00 committed by Anas Nashif
parent 33ca224ffd
commit 9311bf7709

View file

@ -20,15 +20,15 @@
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <errno.h>
#include <stddef.h>
#include <device.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @brief Line control signals. */
enum uart_line_ctrl {
UART_LINE_CTRL_RTS = (1 << 1),