Merge pull request #8329 from fvacek/master
examples: superfluous extern "C" in c++ example removed
This commit is contained in:
commit
0272c8f44c
@ -22,6 +22,11 @@
|
|||||||
#ifndef C_FUNCTIONS_H
|
#ifndef C_FUNCTIONS_H
|
||||||
#define 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
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -21,14 +21,9 @@
|
|||||||
* @author DangNhat Pham-Huu <51002279@hcmut.edu.vn>
|
* @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 "thread.h"
|
||||||
|
|
||||||
#include "c_functions.h"
|
#include "c_functions.h"
|
||||||
}
|
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user