diff --git a/src/SFE_MicroOLED.cpp b/src/SFE_MicroOLED.cpp
index 3c4935b..4cb6cef 100644
--- a/src/SFE_MicroOLED.cpp
+++ b/src/SFE_MicroOLED.cpp
@@ -34,7 +34,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .
******************************************************************************/
#include
-#ifdef __AVR__
+#if defined(__AVR__) || defined(__arm__)
#include
#else
#include
diff --git a/src/SFE_MicroOLED.h b/src/SFE_MicroOLED.h
index 369b68b..137ca6d 100644
--- a/src/SFE_MicroOLED.h
+++ b/src/SFE_MicroOLED.h
@@ -41,7 +41,7 @@ along with this program. If not, see .
#include
#include
-#ifdef __AVR__
+#if defined(__AVR__) || defined(__arm__)
#include
#else
#include
diff --git a/src/util/7segment.h b/src/util/7segment.h
index ca974f0..933f7d2 100644
--- a/src/util/7segment.h
+++ b/src/util/7segment.h
@@ -25,7 +25,7 @@ July 27, 2015
#ifndef FONT7SEGMENT_H
#define FONT7SEGMENT_H
-#ifdef __AVR__
+#if defined(__AVR__) || defined(__arm__)
#include
#else
#include
diff --git a/src/util/font5x7.h b/src/util/font5x7.h
index 10e9c7b..da31822 100644
--- a/src/util/font5x7.h
+++ b/src/util/font5x7.h
@@ -25,7 +25,7 @@ July 27, 2015
#ifndef FONT5X7_H
#define FONT5X7_H
-#ifdef __AVR__
+#if defined(__AVR__) || defined(__arm__)
#include
#else
#include
diff --git a/src/util/font8x16.h b/src/util/font8x16.h
index fb579e8..4982ca5 100644
--- a/src/util/font8x16.h
+++ b/src/util/font8x16.h
@@ -24,7 +24,7 @@ July 27, 2015
#ifndef FONT8X16_H
#define FONT8X16_H
-#ifdef __AVR__
+#if defined(__AVR__) || defined(__arm__)
#include
#else
#include
diff --git a/src/util/fontlargeletter31x48.h b/src/util/fontlargeletter31x48.h
index 1fb9cc4..6d25454 100644
--- a/src/util/fontlargeletter31x48.h
+++ b/src/util/fontlargeletter31x48.h
@@ -19,7 +19,11 @@ August 13, 2015
#ifndef FONTLARGELETTER31X48_H
#define FONTLARGELETTER31X48_H
-#include
+#if defined(__AVR__) || defined(__arm__)
+ #include
+#else
+ #include
+#endif
static const unsigned char fontlargeletter31x48 [] PROGMEM = {
// first row defines - FONTWIDTH, FONTHEIGHT, ASCII START CHAR, TOTAL CHARACTERS, FONT MAP WIDTH HIGH, FONT MAP WIDTH LOW (2,56 meaning 256)
31,48,65,58,0,62,
diff --git a/src/util/fontlargenumber.h b/src/util/fontlargenumber.h
index 0e6271b..e780cf8 100644
--- a/src/util/fontlargenumber.h
+++ b/src/util/fontlargenumber.h
@@ -25,7 +25,7 @@ July 27, 2015
#ifndef FONTLARGENUMBER_H
#define FONTLARGENUMBER_H
-#ifdef __AVR__
+#if defined(__AVR__) || defined(__arm__)
#include
#else
#include