aboutsummaryrefslogtreecommitdiff
path: root/sdk-modifications/libsrc/fs/fs_common.h
diff options
context:
space:
mode:
authorNebuleon Fumika2013-05-17 23:12:43 -0400
committerNebuleon Fumika2013-05-17 23:12:43 -0400
commitfbe8c3fc9681b8f4d626c1cdcaa0405e67493494 (patch)
treec5a001c6836f300c426626cc2480832bea7d8eda /sdk-modifications/libsrc/fs/fs_common.h
parent6b370ce35b215d600e0fa37f21bc3ce83dc52d09 (diff)
downloadsnes9x2005-fbe8c3fc9681b8f4d626c1cdcaa0405e67493494.tar.gz
snes9x2005-fbe8c3fc9681b8f4d626c1cdcaa0405e67493494.tar.bz2
snes9x2005-fbe8c3fc9681b8f4d626c1cdcaa0405e67493494.zip
sdk-modifications: Fix totally broken short-file-name (SFN) alias support which caused computers to report duplicate SFNs in directories, as well as corrupted file names and breakage with files that have no extension.
Diffstat (limited to 'sdk-modifications/libsrc/fs/fs_common.h')
-rwxr-xr-xsdk-modifications/libsrc/fs/fs_common.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/sdk-modifications/libsrc/fs/fs_common.h b/sdk-modifications/libsrc/fs/fs_common.h
index ce1cfff..db47d9a 100755
--- a/sdk-modifications/libsrc/fs/fs_common.h
+++ b/sdk-modifications/libsrc/fs/fs_common.h
@@ -49,9 +49,10 @@
#define BYTES_PER_READ 512
-#ifndef NULL
- #define NULL 0
-#endif
+// MODIFICATION START [Neb]
+// In libfat by Chishm, some types are #define'd here. In the DS2 SDK,
+// these types are defined by another header.
+#include "ds2_types.h"
#ifndef bool
#define bool int
@@ -65,21 +66,7 @@
#define true 1
#endif
-#ifndef u8
-#define u8 unsigned char
-#endif
-
-#ifndef u16
-#define u16 unsigned short
-#endif
-
-#ifndef u32
-#define u32 unsigned long
-#endif
-
-#ifndef s32
-#define s32 long
-#endif
+// MODIFICATION END [Neb]
struct _reent
{