Skip to content
Snippets Groups Projects
Commit c69eb585 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

configure test for USORT_MAX added

Rev: src/configure.in:1.5
parent 1b34bde2
No related branches found
No related tags found
No related merge requests found
......@@ -412,6 +412,22 @@ fi
AC_MSG_RESULT($pike_cv_struct_tm_has_gmtoff)
AC_MSG_CHECKING(for USHRT_MAX definition)
AC_CACHE_VAL(pike_cv_ushrt_max_is_defined,[
AC_EGREP_CPP(yes,[
#include <limits.h>
#ifdef USHRT_MAX
yes
#endif
],pike_cv_ushrt_max_is_defined=yes,pike_cv_ushrt_max_is_defined=no)
])
if test "$pike_cv_ushrt_max_is_defined" = "no" ; then
AC_DEFINE(USHRT_MAX,65535)
fi
AC_MSG_RESULT($pike_cv_ushrt_max_is_defined)
define(MY_CHECK_HEADERS,
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment