Skip to content

Commit 00f1d73

Browse files
cmaglieaethaniel
authored andcommitted
delay.h is included outside __cplusplus guards
1 parent a3a0ff3 commit 00f1d73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: cores/arduino/Arduino.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void loop( void ) ;
6262

6363
#ifdef __cplusplus
6464
} // extern "C"
65-
#endif // __cplusplus
65+
#endif
6666

6767
// The following headers are for C++ only compilation
6868
#ifdef __cplusplus
@@ -72,9 +72,11 @@ void loop( void ) ;
7272
#include "WMath.h"
7373
#include "HardwareSerial.h"
7474
#include "pulse.h"
75-
#include "delay.h"
75+
#endif
76+
#include "delay.h"
77+
#ifdef __cplusplus
7678
#include "Uart.h"
77-
#endif // __cplusplus
79+
#endif
7880

7981
// Include board variant
8082
#include "variant.h"

0 commit comments

Comments
 (0)