Fix compiling on latest devkitpro version

This commit is contained in:
Maschell 2019-05-14 19:36:13 +02:00
parent 6c147b1ca8
commit 24fe38cb0c
10 changed files with 12 additions and 11 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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;

View File

@ -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"

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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[] = {

View File

@ -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;

View File

@ -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;