From 43995198e234f13c99f1f0a91b736e003a307b42 Mon Sep 17 00:00:00 2001 From: Jonathan BAUDIN <jonathan.baudin@atmel.com> Date: Thu, 15 May 2014 18:02:24 +0200 Subject: [PATCH] Fix syscalls --- cores/arduino/syscalls.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cores/arduino/syscalls.c b/cores/arduino/syscalls.c index 6f648792..add70815 100644 --- a/cores/arduino/syscalls.c +++ b/cores/arduino/syscalls.c @@ -26,6 +26,10 @@ #include "syscalls.h" #include "sam.h" +#ifdef __cplusplus +extern "C" { +#endif + #undef errno extern int errno ; extern int __end__ ; @@ -130,3 +134,7 @@ extern int _getpid ( void ) { return -1 ; } + +#ifdef __cplusplus +} +#endif -- GitLab