From 259116cefc595b2ea99841dea9cf8a2c7999740a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Sat, 24 Jan 2009 10:16:22 +0000 Subject: [PATCH] =?UTF-8?q?Accept=20FS#9717=20by=20Akio=20Idehara=20with?= =?UTF-8?q?=20a=20small=20change=20suggested=20by=20Rafa=C3=ABl=20Carr?= =?UTF-8?q?=C3=A9=20avoiding=20simulator=20warnings=20about=20redefining?= =?UTF-8?q?=20endianness=20switching=20macros?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19843 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/system.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/firmware/export/system.h b/firmware/export/system.h index cc2a08db2e..fb9dfa3003 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -121,6 +121,18 @@ int get_cpu_boost_counter(void); ptr = (typeof(ptr))tmp_ptr1; \ } +/* newer? SDL includes endian.h, So we ignore it */ +#ifdef SIMULATOR +#undef letoh16 +#undef letoh32 +#undef htole16 +#undef htole32 +#undef betoh16 +#undef betoh32 +#undef htobe16 +#undef htobe32 +#endif + /* live endianness conversion */ #ifdef ROCKBOX_LITTLE_ENDIAN #define letoh16(x) (x)