Skip to content

Commit 5cefb89

Browse files
committed
Fix mis-placed extern "C" block causing linker issues in variant.h
1 parent 4fb6848 commit 5cefb89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/arduino/board.h

Lines changed: 3 additions & 3 deletions
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"
@@ -23,6 +20,9 @@ extern "C"{
2320
#include "uart.h"
2421
#include "uart_emul.h"
2522

23+
#ifdef __cplusplus
24+
extern "C"{
25+
#endif // __cplusplus
2626
void init( void ) ;
2727
#ifdef __cplusplus
2828
}

0 commit comments

Comments
 (0)