unicode: Fix getle16 and getbe16

Change-Id: I8e1df113eee156491fc9624d148eb64c388bd962
Reviewed-on: http://gerrit.rockbox.org/958
Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
Tested: Chiwen Chang <rock1104.tw@yahoo.com.tw>
Reviewed-by: Nick Peskett <rockbox@peskett.co.uk>
Tested: Nick Peskett <rockbox@peskett.co.uk>
This commit is contained in:
nialv7 2014-09-13 18:55:27 -04:00 committed by Nick Peskett
parent f9be1ef021
commit 5fd5b13939

View file

@ -44,8 +44,8 @@
#define O_NOISODECODE 0
#endif
#define getle16(p) (p[0] | (p[1] >> 8))
#define getbe16(p) ((p[1] << 8) | p[0])
#define getle16(p) (p[0] | (p[1] << 8))
#define getbe16(p) ((p[0] << 8) | p[1])
#if !defined (__PCTOOL__) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
/* Because file scanning uses the default CP table when matching entries,