diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index c40dcb20..8cd4a574 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -27,6 +27,17 @@ #include #ifdef __cplusplus + +#undef F + +// C++11 declaration +template +auto F(T1&& A) + -> const arduino::__FlashStringHelper* +{ +return (const arduino::__FlashStringHelper*)A; +} + extern "C"{ #endif