3ds: 3ds port sources. First set of two

This commit adds changes to the original rockbox sources.

Note: the port files, functions, folders, etc., will be referred
to as 'ctru' to avoid using the Nintendo name elsewhere.

Change-Id: I0e2d3d4d2a75bd45ea67dc3452eb8d5487cf1f5a
This commit is contained in:
Mauricio Garrido 2025-09-29 16:06:04 -06:00 committed by Solomon Peachy
parent 511a38763b
commit a4de1195cd
25 changed files with 227 additions and 23 deletions

View file

@ -9,8 +9,8 @@
"comment out" the non-ANSI parts of the ANSI header files (non-ANSI header
files aren't affected). */
#ifndef _ANSIDECL_H_
#define _ANSIDECL_H_
#ifndef __ANSIDECL_H__
#define __ANSIDECL_H__
/* First try to figure out whether we really are in an ANSI C environment. */
/* FIXME: This probably needs some work. Perhaps sys/config.h can be
@ -64,4 +64,4 @@
#endif
#endif
#endif /* _ANSIDECL_H_ */
#endif /* __ANSIDECL_H__ */

View file

@ -28,7 +28,9 @@
#include "fs_attr.h"
#include "fs_defines.h"
#if defined (APPLICATION) || defined(CHECKWPS)
#if defined(CTRU) && !defined(SIMULATOR)
#include "filesystem-ctru.h"
#elif defined (APPLICATION) || defined(CHECKWPS)
#include "filesystem-app.h"
#elif defined(SIMULATOR) || defined(DBTOOL)
#include "../../uisimulator/common/filesystem-sim.h"

View file

@ -40,7 +40,9 @@ enum relate_result
RELATE_PREFIX, /* the path2 contains path1 as a prefix */
};
#if defined(APPLICATION) || defined(CHECKWPS)
#if defined(CTRU) && !defined(SIMULATOR)
#include "filesystem-ctru.h"
#elif defined(APPLICATION) || defined(CHECKWPS)
#include "filesystem-app.h"
#elif defined(SIMULATOR) || defined(DBTOOL)
#include "../../uisimulator/common/filesystem-sim.h"

View file

@ -28,7 +28,7 @@
#endif
#ifndef __MINGW32__
#ifdef __APPLE__
#if defined(__APPLE__) || defined(CTRU)
#include <sys/types.h>
#else
#include <endian.h>