From d5800f49a29e7394fa4d9c2e9b0892f076797074 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 4 Feb 2018 16:34:39 +0100 Subject: [PATCH] [Loader ]Added missing define to libelf --- loader/src/libelf/_elftc.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/loader/src/libelf/_elftc.h b/loader/src/libelf/_elftc.h index 5b5e6d2..1ba316e 100644 --- a/loader/src/libelf/_elftc.h +++ b/loader/src/libelf/_elftc.h @@ -315,6 +315,24 @@ extern const char *__progname; #endif +#if defined(__wiiu__) + +#include + +#define ELFTC_BYTE_ORDER BYTE_ORDER +#define ELFTC_BYTE_ORDER_LITTLE_ENDIAN LITTLE_ENDIAN +#define ELFTC_BYTE_ORDER_BIG_ENDIAN BIG_ENDIAN + +#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) +#define roundup2 roundup + +#define ELFTC_HAVE_MMAP 0 +#define ELFTC_HAVE_STRMODE 0/ +#define ELFTC_NEED_BYTEORDER_EXTENSIONS 1 + +#endif + + #if defined(__DragonFly__) #include