Skip to content

Commit 8f2672e

Browse files
committed
Include Compat header only if C++
1 parent 334156c commit 8f2672e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/ArduinoAPI.h

Lines changed: 2 additions & 0 deletions
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)