summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-03-29 21:16:45 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-03-29 21:16:45 +0000
commit4ed232df5e4ff3a5bfe053aaa6843b11fb0e85b6 (patch)
tree85e268089f9056b9a2811d37bbc106dc0e695ae7 /apps/plugins
parentbe8f0eb9e204759ea0032d75c39c8421ebefcb07 (diff)
Use rockbox endian defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9351 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/doom/Makefile9
-rw-r--r--apps/plugins/doom/m_swap.h4
2 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/doom/Makefile b/apps/plugins/doom/Makefile
index c45ffe78da..ea5644122c 100644
--- a/apps/plugins/doom/Makefile
+++ b/apps/plugins/doom/Makefile
@@ -3,7 +3,10 @@
# $Id$
#
# $Log$
-# Revision 1.1 2006/03/28 15:44:01 dave
+# Revision 1.2 2006/03/29 21:16:45 kkurbjun
+# Use rockbox endian defines
+#
+# Revision 1.1 2006-03-28 15:44:01 dave
# Patch #2969 - Doom! Currently only working on the H300.
#
#
@@ -22,10 +25,6 @@ ifneq (,$(strip $(foreach tgt,IPOD_NANO IPOD_COLOR IPOD_VIDEO,$(findstring $(tgt
ifndef SIMVER
CFLAGS += -mstructure-size-boundary=8
endif
-else
-ifndef SIMVER
- CFLAGS += -D__BIG_ENDIAN__
-endif
endif
LINKFILE := $(OBJDIR)/link.lds
diff --git a/apps/plugins/doom/m_swap.h b/apps/plugins/doom/m_swap.h
index fdf2b92a15..026e2df1eb 100644
--- a/apps/plugins/doom/m_swap.h
+++ b/apps/plugins/doom/m_swap.h
@@ -37,6 +37,8 @@
#pragma interface
#endif
+#include "plugin.h"
+
/* Endianess handling. */
/* cph - First the macros to do the actual byte swapping */
@@ -70,7 +72,7 @@
* Use separate macros so network could be converted to big-endian later.
*/
-#ifdef __BIG_ENDIAN__
+#ifndef ROCKBOX_LITTLE_ENDIAN
#define doom_wtohl(x) doom_swap_l(x)
#define doom_htowl(x) doom_swap_l(x)