From 68947473e11ec9ac97f00fa5c70cee820753be90 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 14 May 2010 12:43:45 +0000 Subject: 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 --- apps/plugins/calculator.c | 3 +++ apps/plugins/lua/rockconf.h | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index c19d6bbc5b..95b35e903c 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -80,6 +80,9 @@ F3: equal to "=" PLUGIN_HEADER + +#define M_TWOPI (M_PI * 2.0) + #define BUTTON_ROWS 5 #define BUTTON_COLS 5 diff --git a/apps/plugins/lua/rockconf.h b/apps/plugins/lua/rockconf.h index 92c0f8cac8..7fbc89f166 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 -- cgit v1.2.3