From d1bdc077d4b7cbef48b133b4099e89329599ae3e Mon Sep 17 00:00:00 2001 From: Fanda Vacek Date: Tue, 16 Jan 2018 23:27:27 +0100 Subject: [PATCH] examples: superfluous extern "C" in c++ example removed --- examples/riot_and_cpp/c_functions.h | 5 +++++ examples/riot_and_cpp/main.cpp | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/riot_and_cpp/c_functions.h b/examples/riot_and_cpp/c_functions.h index 3a4de5ab33..837b847e1d 100644 --- a/examples/riot_and_cpp/c_functions.h +++ b/examples/riot_and_cpp/c_functions.h @@ -22,6 +22,11 @@ #ifndef C_FUNCTIONS_H #define C_FUNCTIONS_H + +/* + * all headers defining c functions must be marked as extern "C" when included + * into c++ sources + */ #ifdef __cplusplus extern "C" { #endif diff --git a/examples/riot_and_cpp/main.cpp b/examples/riot_and_cpp/main.cpp index b53a356bb4..6bca2c4ab7 100644 --- a/examples/riot_and_cpp/main.cpp +++ b/examples/riot_and_cpp/main.cpp @@ -21,14 +21,9 @@ * @author DangNhat Pham-Huu <51002279@hcmut.edu.vn> */ -/* - * all included headers defining c functions, i.e. all RIOT functions, must be marked as extern "C" - */ -extern "C" { #include "thread.h" #include "c_functions.h" -} #include #include