Skip to content

Commit 01180fc

Browse files
facchinmpolldo
authored andcommitted
Allow including stripped version of Arduino.h in c files
1 parent e2d39d2 commit 01180fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/arduino/Arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ void analogWriteResolution(int bits);
8080

8181
#include "pins_arduino.h"
8282

83+
#ifdef __cplusplus
8384
/* Types used for the table below */
8485
typedef struct _PinDescription
8586
{
@@ -105,6 +106,8 @@ extern PinDescription g_APinDescription[];
105106
#endif
106107

107108
#include "overloads.h"
109+
#endif
110+
108111
#include "macros.h"
109112

110113
#endif

0 commit comments

Comments
 (0)