summaryrefslogtreecommitdiff
path: root/utils/utils.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-05 21:02:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-05 21:02:22 +0000
commit124e4cd78814e368488d8e86c15f95223f365a44 (patch)
treece09522fee51a4fa1c92c12faa60aeff96403a52 /utils/utils.h
parent9422e6dad0dffa134c961d16e9aa503324245cd7 (diff)
downloadnetsurf-124e4cd78814e368488d8e86c15f95223f365a44.tar.gz
netsurf-124e4cd78814e368488d8e86c15f95223f365a44.tar.bz2
Atari frontend (credit: Ole Loots)
svn path=/trunk/netsurf/; revision=11218
Diffstat (limited to 'utils/utils.h')
-rw-r--r--utils/utils.h8
1 files changed, 8 insertions, 0 deletions
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.
*