1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples: superfluous extern "C" in c++ example removed

This commit is contained in:
Fanda Vacek 2018-01-16 23:27:27 +01:00
parent 71607bb12d
commit d1bdc077d4
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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 <cstdio>
#include <vector>