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:
parent
f9be1ef021
commit
5fd5b13939
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@
|
||||||
#define O_NOISODECODE 0
|
#define O_NOISODECODE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define getle16(p) (p[0] | (p[1] >> 8))
|
#define getle16(p) (p[0] | (p[1] << 8))
|
||||||
#define getbe16(p) ((p[1] << 8) | p[0])
|
#define getbe16(p) ((p[0] << 8) | p[1])
|
||||||
|
|
||||||
#if !defined (__PCTOOL__) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
#if !defined (__PCTOOL__) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||||
/* Because file scanning uses the default CP table when matching entries,
|
/* Because file scanning uses the default CP table when matching entries,
|
||||||
|
|
Loading…
Reference in a new issue