diff --git a/src/MqttStreaming.h b/src/MqttStreaming.h index 4751de3..6066a7a 100644 --- a/src/MqttStreaming.h +++ b/src/MqttStreaming.h @@ -42,7 +42,7 @@ #ifndef ARDUINO_STREAMING #define ARDUINO_STREAMING -#if defined(ARDUINO) && ARDUINO >= 100 +#if (defined(ARDUINO) && ARDUINO >= 100) || defined(EPOXY_DUINO) #include "Arduino.h" #else #ifndef STREAMING_CONSOLE @@ -154,7 +154,7 @@ template inline Print &operator <<(Print &obj, const _BASED &arg) { obj.print(arg.val, arg.base); return obj; } -#if ARDUINO >= 18 +#if ARDUINO >= 18 || defined(EPOXY_DUINO) // Specialization for class _FLOAT // Thanks to Michael Margolis for suggesting a way // to accommodate Arduino 0018's floating point precision diff --git a/tests/local-tests/local-tests.ino b/tests/local-tests/local-tests.ino index 97f7cbe..b62a9a1 100644 --- a/tests/local-tests/local-tests.ino +++ b/tests/local-tests/local-tests.ino @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/tests/nowifi-tests/nowifi-tests.ino b/tests/nowifi-tests/nowifi-tests.ino index 09efd6f..a0346cf 100644 --- a/tests/nowifi-tests/nowifi-tests.ino +++ b/tests/nowifi-tests/nowifi-tests.ino @@ -1,3 +1,4 @@ +#include #include #include #include diff --git a/tests/string-indexer-tests/string-indexer-tests.ino b/tests/string-indexer-tests/string-indexer-tests.ino index f2a2e70..0cd3811 100644 --- a/tests/string-indexer-tests/string-indexer-tests.ino +++ b/tests/string-indexer-tests/string-indexer-tests.ino @@ -1,3 +1,4 @@ +#include #include #include #include