diff --git a/source/libelm.c b/source/libelm.c index 7eac957..415370d 100644 --- a/source/libelm.c +++ b/source/libelm.c @@ -375,7 +375,8 @@ static void _ELM_fileinfo_to_stat(const TCHAR* path,const FILINFO* fi,struct sta st->st_rdev=st->st_dev; st->st_size=fi->fsize; st->st_mtime=_ELM_filetime_to_time(fi->ftime,fi->fdate); - st->st_spare1=fi->fattrib; + st->st_spare4[0]=fi->fattrib; + st->st_spare4[1]=fi->fattrib; } static int _ELM_chk_mounted(int disk) diff --git a/source/sdmmc/sdmmc.c b/source/sdmmc/sdmmc.c index ba411aa..6572607 100644 --- a/source/sdmmc/sdmmc.c +++ b/source/sdmmc/sdmmc.c @@ -42,8 +42,6 @@ #define TRUE 1 #define FALSE 0 -#define bool int - #define NO_INLINE __attribute__ ((noinline)) #define RGB(r,g,b) (r<<24|b<<16|g<<8|r)