diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-05-14 12:43:45 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-14 12:43:45 +0000 |
| commit | 68947473e11ec9ac97f00fa5c70cee820753be90 (patch) | |
| tree | efe51f0174cc2f9b2e7aa8d309ae3ad0f076877c /apps/plugins/lua | |
| parent | 3cca7e865082c8144a47687e3a2455fba5a927d5 (diff) | |
| download | rockbox-68947473e11ec9ac97f00fa5c70cee820753be90.zip rockbox-68947473e11ec9ac97f00fa5c70cee820753be90.tar.gz rockbox-68947473e11ec9ac97f00fa5c70cee820753be90.tar.bz2 rockbox-68947473e11ec9ac97f00fa5c70cee820753be90.tar.xz | |
Move math.h to firmware/libc/include/ and fix slight incompatibilities between our and the host's math.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26020 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua')
| -rw-r--r-- | apps/plugins/lua/rockconf.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/lua/rockconf.h b/apps/plugins/lua/rockconf.h index 92c0f8c..7fbc89f 100644 --- a/apps/plugins/lua/rockconf.h +++ b/apps/plugins/lua/rockconf.h @@ -51,8 +51,11 @@ struct tm *gmtime(const time_t *timep); long strtol(const char *nptr, char **endptr, int base); unsigned long strtoul(const char *str, char **endptr, int base); size_t strftime(char* dst, size_t max, const char* format, const struct tm* tm); -long floor(long x); -long pow(long x, long y); +long lfloor(long x); +long lpow(long x, long y); + +#define floor lfloor +#define pow lpow /* Simple substitutions */ #define realloc dlrealloc |