Skip to content

Commit f59b730

Browse files
committed
Include Compat header only if C++
1 parent 9892351 commit f59b730

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: api/ArduinoAPI.h

+2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
// Misc Arduino core functions
5454
#include "Common.h"
5555

56+
#ifdef __cplusplus
5657
// Compatibility layer for older code
5758
#include "Compat.h"
59+
#endif
5860

5961
#endif

0 commit comments

Comments
 (0)