summaryrefslogtreecommitdiff
path: root/mi/miarc.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-05-09 18:57:05 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-05-11 11:43:19 -0400
commit8dcc37520d5e8c8b52cee81faa67fd5205548377 (patch)
treeb3837581a08a45b6988d6352fa589ef9efc993ac /mi/miarc.c
parent6ff239cb4e67c0a2ea497a1714e5585c1d941af3 (diff)
Use _X_INLINE instead of ad-hoc #defines.
Diffstat (limited to 'mi/miarc.c')
-rw-r--r--mi/miarc.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/mi/miarc.c b/mi/miarc.c
index 17b7891bf..69c5acdbc 100644
--- a/mi/miarc.c
+++ b/mi/miarc.c
@@ -100,37 +100,16 @@ double cbrt(double);
#undef max
#undef min
-#if defined (__GNUC__) && !defined (__STRICT_ANSI__)
-#define USE_INLINE
-#endif
-
-#ifdef USE_INLINE
-inline static int max (const int x, const int y)
-{
- return x>y? x:y;
-}
-
-inline static int min (const int x, const int y)
-{
- return x<y? x:y;
-}
-
-#else
-
-static int
-max (int x, int y)
+_X_INLINE static int max (const int x, const int y)
{
return x>y? x:y;
}
-static int
-min (int x, int y)
+_X_INLINE static int min (const int x, const int y)
{
return x<y? x:y;
}
-#endif
-
struct bound {
double min, max;
};