From a65d380cb9f75924a5c920a09ce57e6196eaa786 Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Wed, 1 Jan 2025 11:25:59 +0100 Subject: [PATCH] compile error in PlatfomIO --- src/AudioTools/CoreAudio/AudioRuntime.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AudioTools/CoreAudio/AudioRuntime.h b/src/AudioTools/CoreAudio/AudioRuntime.h index a20f16b26..e4ce8801c 100644 --- a/src/AudioTools/CoreAudio/AudioRuntime.h +++ b/src/AudioTools/CoreAudio/AudioRuntime.h @@ -49,6 +49,12 @@ inline void printNChar(char ch, int n){ Serial.println(); } +#ifndef ESP_ARDUINO_VERSION_STR +# define df2xstr(s) #s +# define df2str(s) df2xstr(s) +# define ESP_ARDUINO_VERSION_STR df2str(ESP_ARDUINO_VERSION_MAJOR) "." df2str(ESP_ARDUINO_VERSION_MINOR) "." df2str(ESP_ARDUINO_VERSION_PATCH) +#endif + /// prints the available version information inline void printVersionInfo() { printNChar('*',50);