summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-01-21 15:18:31 -0500
committerFranklin Wei <git@fwei.tk>2017-12-23 21:01:26 -0500
commita855d6202536ff28e5aae4f22a0f31d8f5b325d0 (patch)
tree8c75f224dd64ed360505afa8843d016b0d75000b /firmware
parent01c6dcf6c7b9bb1ad2fa0450f99bacc5f3d3e04b (diff)
downloadrockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.tar.gz
rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.tar.bz2
rockbox-a855d6202536ff28e5aae4f22a0f31d8f5b325d0.zip
Port of Duke Nukem 3D
This ports Fabien Sanglard's Chocolate Duke to run on a version of SDL for Rockbox. Change-Id: I8f2c4c78af19de10c1633ed7bb7a997b43256dd9
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/vuprintf.c3
-rw-r--r--firmware/export/config.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/firmware/common/vuprintf.c b/firmware/common/vuprintf.c
index 1c0adad00e..becb05e136 100644
--- a/firmware/common/vuprintf.c
+++ b/firmware/common/vuprintf.c
@@ -22,10 +22,11 @@
#include <sys/types.h>
#include <limits.h>
#include <string.h>
+#include <stddef.h>
#include "system.h"
#include "vuprintf.h"
-#if 0
+#if 1
/* turn everything on */
#define FMT_LENMOD (0xffffffff)
#define FMT_RADIX (0xffffffff)
diff --git a/firmware/export/config.h b/firmware/export/config.h
index a4f0ea94fd..0d15ab6a33 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -973,7 +973,9 @@ Lyre prototype 1 */
|| (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) \
|| defined(CPU_S5L870X) || (CONFIG_CPU == S3C2440) \
|| defined(APPLICATION) || (CONFIG_CPU == PP5002) \
- || (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233)
+ || (CONFIG_CPU == RK27XX) || (CONFIG_CPU == IMX233) || \
+ (defined(HAVE_LCD_COLOR) && \
+ (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)))
#define HAVE_SEMAPHORE_OBJECTS
#endif