mirror of
https://github.com/Maschell/libntfs-wiiu.git
synced 2024-11-05 20:55:09 +01:00
Fix compiling on latest devkitpro version
This commit is contained in:
parent
6c147b1ca8
commit
24fe38cb0c
@ -8,8 +8,9 @@ $(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>dev
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),wiiu)
|
||||
MACHDEP = -DESPRESSO -mwup -mcpu=750 -meabi -mhard-float
|
||||
MACHDEP = -DESPRESSO -mcpu=750 -meabi -mhard-float
|
||||
include $(DEVKITPPC)/base_rules
|
||||
export PORTLIBS := $(DEVKITPRO)/portlibs/ppc
|
||||
endif
|
||||
|
||||
ifeq ($(PLATFORM),wii)
|
||||
|
@ -35,9 +35,9 @@
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined (__wiiu__)
|
||||
#if defined (ESPRESSO)
|
||||
|
||||
#elif defined(__gamecube__) || defined (__wii__)
|
||||
#elif defined(__gamecube__) || defined (ESPRESSO)
|
||||
#include <ogc/lwp_watchdog.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined (__wiiu__)
|
||||
#if defined (ESPRESSO)
|
||||
#include <iosuhax_disc_interface.h>
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
|
@ -69,7 +69,7 @@ extern char *strsep(char **stringp, const char *delim);
|
||||
#define O_BINARY 0 /* unix is binary by default */
|
||||
#endif
|
||||
|
||||
#if defined(GEKKO) || defined (__wiiu__)
|
||||
#if defined(GEKKO) || defined (ESPRESSO)
|
||||
|
||||
#include "mem_allocate.h"
|
||||
|
||||
|
@ -66,7 +66,7 @@
|
||||
#include <sys/xattr.h>
|
||||
#endif
|
||||
|
||||
#if defined(__wiiu__)
|
||||
#if defined(ESPRESSO)
|
||||
#define major(dev) ((int)(((unsigned int) (dev) >> 8) & 0xff))
|
||||
#define minor(dev) ((int)((dev) & 0xff))
|
||||
#endif // defined
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "types.h"
|
||||
#include "cache2.h"
|
||||
|
||||
#if defined (__wiiu__)
|
||||
#if defined (ESPRESSO)
|
||||
#include <iosuhax_disc_interface.h>
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
|
@ -52,7 +52,7 @@ static inline void _NTFS_unlock(mutex_t *mutex)
|
||||
LWP_MutexUnlock(*mutex);
|
||||
}
|
||||
/* //not working.
|
||||
#elif defined(__wiiu__)
|
||||
#elif defined(ESPRESSO)
|
||||
#ifndef mutex_t
|
||||
typedef int mutex_t;
|
||||
#endif
|
||||
|
@ -52,7 +52,7 @@ const INTERFACE_ID ntfs_disc_interfaces[] = {
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
#elif defined (__wiiu__)
|
||||
#elif defined (ESPRESSO)
|
||||
#include <iosuhax_disc_interface.h>
|
||||
|
||||
const INTERFACE_ID ntfs_disc_interfaces[] = {
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include "lock.h"
|
||||
#include "unistr.h"
|
||||
|
||||
#if defined (__wiiu__)
|
||||
#if defined (ESPRESSO)
|
||||
#include <iosuhax_disc_interface.h>
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
|
@ -40,7 +40,7 @@
|
||||
/*
|
||||
* assume "struct timespec" is not defined if st_mtime is not defined
|
||||
*/
|
||||
#if !defined(st_mtime) & !defined(__timespec_defined) & !defined(__wiiu__)
|
||||
#if !defined(st_mtime) & !defined(__timespec_defined) & !defined(ESPRESSO)
|
||||
struct timespec {
|
||||
time_t tv_sec;
|
||||
long tv_nsec;
|
||||
|
Loading…
Reference in New Issue
Block a user