Skip to content

Commit 5897ecd

Browse files
committed
Excluded the series of function-like macros out of extern "C"{ block in Arduino.h.
1 parent 0428ad8 commit 5897ecd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: cores/arduino/Arduino.h

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ void yield(void);
8989
#undef abs
9090
#endif
9191

92+
#if defined(__cplusplus)
93+
}; // extern "C"
94+
#endif
95+
9296
#define min(a,b) ((a)<(b)?(a):(b))
9397
#define max(a,b) ((a)>(b)?(a):(b))
9498
#define abs(x) ((x)>0?(x):-(x))
@@ -126,6 +130,10 @@ typedef unsigned int word;
126130
typedef bool boolean;
127131
typedef uint8_t byte;
128132

133+
#if defined(__cplusplus)
134+
extern "C"{
135+
#endif
136+
129137
void init(void);
130138
void initVariant(void);
131139

0 commit comments

Comments
 (0)