aboutsummaryrefslogtreecommitdiff
path: root/common/scummsys.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/scummsys.h')
-rw-r--r--common/scummsys.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/scummsys.h b/common/scummsys.h
index 994fdf593d..71873ee4e6 100644
--- a/common/scummsys.h
+++ b/common/scummsys.h
@@ -243,6 +243,13 @@
#define SCUMM_NEED_ALIGNMENT
#endif
+ // Very BAD hack following, used to avoid triggering an assert in uClibc dingux library
+ // "toupper" when pressing keyboard function keys.
+ #if defined(DINGUX)
+ #undef toupper
+ #define toupper(c) (((c & 0xFF) >= 97) && ((c & 0xFF) <= 122) ? ((c & 0xFF) - 32) : (c & 0xFF))
+ #endif
+
#elif defined(__DC__)
#define scumm_stricmp strcasecmp
@@ -308,6 +315,7 @@
#elif defined(__PSP__)
#include <malloc.h>
+ #include "backends/platform/psp/memory.h"
#define scumm_stricmp strcasecmp
#define scumm_strnicmp strncasecmp
@@ -315,6 +323,9 @@
#define SCUMM_LITTLE_ENDIAN
#define SCUMM_NEED_ALIGNMENT
+ /* to make an efficient, inlined memcpy implementation */
+ #define memcpy(dst, src, size) psp_memcpy(dst, src, size)
+
#elif defined(__amigaos4__)
#define scumm_stricmp strcasecmp