diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-02-13 14:41:00 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2010-02-13 14:41:00 +0000 |
| commit | 9bf28debd8617bbc5b8e42c9a47a3eb8c78ef43d (patch) | |
| tree | e70216b99f6366b47df34c955a9650227b7ddf82 /apps/plugins/lua/rocklibc.h | |
| parent | 4c658f74a775bcccadbc682e2a173a9a452ee2a2 (diff) | |
| download | rockbox-9bf28debd8617bbc5b8e42c9a47a3eb8c78ef43d.zip rockbox-9bf28debd8617bbc5b8e42c9a47a3eb8c78ef43d.tar.gz rockbox-9bf28debd8617bbc5b8e42c9a47a3eb8c78ef43d.tar.bz2 rockbox-9bf28debd8617bbc5b8e42c9a47a3eb8c78ef43d.tar.xz | |
Fix FS#11007: Lua didn't parse negative numbers correct when reading from files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua/rocklibc.h')
| -rw-r--r-- | apps/plugins/lua/rocklibc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklibc.h b/apps/plugins/lua/rocklibc.h index 78b83a6..9b68f42 100644 --- a/apps/plugins/lua/rocklibc.h +++ b/apps/plugins/lua/rocklibc.h @@ -28,10 +28,12 @@ #ifdef SIMULATOR #include <errno.h> +#define PREFIX(_x_) sim_ ## _x_ #else extern int errno; #define EINVAL 22 /* Invalid argument */ #define ERANGE 34 /* Math result not representable */ +#define PREFIX #endif #define __likely LIKELY @@ -41,5 +43,7 @@ extern int errno; #define memcmp rb->memcmp #define strlen rb->strlen +extern int PREFIX(fscanf)(int fd, const char *fmt, ...); + #endif /* _ROCKLIBC_H_ */ |