From f951afe194b9cd151c6cbe4daea1f14176323243 Mon Sep 17 00:00:00 2001
From: bulzipke <bulzipke@naver.com>
Date: Thu, 14 Mar 2024 22:26:12 +0900
Subject: [PATCH] Updated to build in the latest devkitpro environment.

---
 source/libelm.c      | 3 ++-
 source/sdmmc/sdmmc.c | 2 --
 2 files changed, 2 insertions(+), 3 deletions(-)

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)