summaryrefslogtreecommitdiff
path: root/Sprinter/SdFatUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sprinter/SdFatUtil.h')
-rw-r--r--Sprinter/SdFatUtil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Sprinter/SdFatUtil.h b/Sprinter/SdFatUtil.h
index de3fee3..361a5a2 100644
--- a/Sprinter/SdFatUtil.h
+++ b/Sprinter/SdFatUtil.h
@@ -23,7 +23,11 @@
* \file
* Useful utility functions.
*/
+#if defined(ARDUINO) && ARDUINO >= 100
+#include <Arduino.h>
+#else
#include <WProgram.h>
+#endif
#include <avr/pgmspace.h>
/** Store and print a string in flash memory.*/
#define PgmPrint(x) SerialPrint_P(PSTR(x))