From 124e4cd78814e368488d8e86c15f95223f365a44 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 5 Jan 2011 21:02:22 +0000 Subject: Atari frontend (credit: Ole Loots) svn path=/trunk/netsurf/; revision=11218 --- utils/utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils') diff --git a/utils/utils.h b/utils/utils.h index f1c193bac..84322156e 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -35,6 +35,10 @@ #ifndef ABS #define ABS(x) (((x)>0)?(x):(-(x))) #endif +#ifdef __MINT__ /* avoid using GCCs builtin min/max functions */ +#undef min +#undef max +#endif #ifndef min #define min(x,y) (((x)<(y))?(x):(y)) #endif @@ -52,6 +56,10 @@ #define strtof(s,p) ((float)(strtod((s),(p)))) #endif +#if !defined(ceilf) && defined(__MINT__) +#define ceilf(x) (float)ceil((double)x) +#endif + /** * Calculate length of constant C string. * -- cgit v1.2.3