From a295b6147eececb124f785d234602e4e7fd69ca3 Mon Sep 17 00:00:00 2001 From: Changwoo Ryu Date: Mon, 21 May 2012 02:11:00 +0900 Subject: Arduino 1.0 build --- Sprinter/Sd2Card.cpp | 4 ++++ Sprinter/SdFatUtil.h | 4 ++++ Sprinter/SdFile.cpp | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Sprinter/Sd2Card.cpp b/Sprinter/Sd2Card.cpp index 8222cfd..05832e7 100644 --- a/Sprinter/Sd2Card.cpp +++ b/Sprinter/Sd2Card.cpp @@ -17,7 +17,11 @@ * along with the Arduino Sd2Card Library. If not, see * . */ +#if defined(ARDUINO) && ARDUINO >= 100 +#include +#else #include +#endif #include "Sd2Card.h" //------------------------------------------------------------------------------ #ifndef SOFTWARE_SPI 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 +#else #include +#endif #include /** Store and print a string in flash memory.*/ #define PgmPrint(x) SerialPrint_P(PSTR(x)) diff --git a/Sprinter/SdFile.cpp b/Sprinter/SdFile.cpp index 13f4c6a..c847e01 100644 --- a/Sprinter/SdFile.cpp +++ b/Sprinter/SdFile.cpp @@ -19,7 +19,11 @@ */ #include "SdFat.h" #include +#if defined(ARDUINO) && ARDUINO >= 100 +#include +#else #include +#endif //------------------------------------------------------------------------------ // callback function for date/time void (*SdFile::dateTime_)(uint16_t* date, uint16_t* time) = NULL; -- cgit v1.2.1