Instead of using the custom defined <type>_SIZE defines in
lib/label/rectangle.c function RectAra, we now use the defines
<type>_MAX from the standard library. The meaning is the same, but it is
more portable and requires less checks.
fi
rm -f conftest*
-# -----------------------------------------------------------------------
-AC_CHECK_SIZEOF([long long])
-AC_CHECK_SIZEOF([int])
-SIZEOF_INT_BITS=$(( $ac_cv_sizeof_int * 8 ))
-AC_SUBST([SIZEOF_INT_BITS])
# -----------------------------------------------------------------------
# This is a historical artifact ... there are no other choices these days
| Calculate the n-dimensional area of a rectangle
-----------------------------------------------------------------------------*/
-#if SIZEOF_LONG_LONG > SIZEOF_INT
+#if LLONG_MAX > UINT_MAX
unsigned int RectArea(Rect_t * r)
{
register int i;
}
return area;
}
-#endif /*SIZEOF_LONG_LONG > SIZEOF_INT*/
+#endif /*LLONG_MAX > UINT_MAX*/
#if 0 /*original code*/
int RectArea(Rect_t * r)
{