mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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:
parent
511a38763b
commit
a4de1195cd
25 changed files with 227 additions and 23 deletions
|
|
@ -58,7 +58,11 @@ const char * handle_special_dirs(const char *dir, unsigned flags,
|
|||
#ifdef WIN32
|
||||
#include "filesystem-win32.h"
|
||||
#else /* !WIN32 */
|
||||
#if defined(CTRU) && !defined(SIMULATOR)
|
||||
#include "filesystem-ctru.h"
|
||||
#else
|
||||
#include "filesystem-unix.h"
|
||||
#endif
|
||||
#endif /* WIN32 */
|
||||
#include "filesystem-hosted.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
#include <sys/time.h>
|
||||
#if !defined(WIN32)
|
||||
#include <sys/ioctl.h>
|
||||
#if !defined(__APPLE__)
|
||||
#if !defined(__APPLE__) && !defined(CTRU)
|
||||
#include <linux/rtc.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
|
|
@ -49,7 +49,7 @@ int rtc_read_datetime(struct tm *tm)
|
|||
|
||||
int rtc_write_datetime(const struct tm *tm)
|
||||
{
|
||||
#if !defined(WIN32) && !defined(__APPLE__)
|
||||
#if !defined(WIN32) && !defined(__APPLE__) && !defined(CTRU)
|
||||
struct timeval tv;
|
||||
struct tm *tm_time;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue