Skip to content

Commit 6cb4121

Browse files
committed
Mis-placed extern "C" in board.h
Fix #446 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 5748353 commit 6cb4121

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: cores/arduino/board.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
* Core and peripherals registers definitions
66
*/
77
#include "interrupt.h"
8-
#ifdef __cplusplus
9-
extern "C" {
10-
#endif // __cplusplus
118
#include "analog.h"
129
#include "clock.h"
1310
#include "core_callback.h"
@@ -21,8 +18,11 @@ extern "C" {
2118
#include "twi.h"
2219
#include "uart.h"
2320

21+
#ifdef __cplusplus
22+
extern "C" {
23+
#endif /* __cplusplus */
2424
void init(void) ;
2525
#ifdef __cplusplus
2626
}
27-
#endif // __cplusplus
27+
#endif /* __cplusplus */
2828
#endif /* _BOARD_H_ */

0 commit comments

Comments
 (0)