changed configure.ac to test __int128_t in va_arg

This commit is contained in:
hyung-hwan 2018-06-29 16:48:20 +00:00
parent 51f61a31b6
commit 1d12ec3e3f
3 changed files with 10 additions and 6 deletions

8
qse/configure vendored
View File

@ -22118,16 +22118,18 @@ fi
if test ${ac_cv_sizeof___int128_t} -gt 0
then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with %" >&5
$as_echo_n "checking __int128_t with %... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128_t with % and va_arg" >&5
$as_echo_n "checking __int128_t with % and va_arg... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdarg.h>
int
main ()
{
va_list ap;
volatile __int128_t x, base;
va_arg (ap, __int128_t);
x = (__int128_t)&base;
base = (__int128_t)&x;
x = x % base;

View File

@ -591,10 +591,12 @@ dnl Changing ac_cv_sizeof___int128_t here doesn't corret SIZEOF___INT128_T
dnl since it's already generated. It only affects QSE_SIZEOF___INT128_T below.
if test ${ac_cv_sizeof___int128_t} -gt 0
then
AC_MSG_CHECKING([__int128_t with %])
AC_MSG_CHECKING([__int128_t with % and va_arg])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([], [
[AC_LANG_PROGRAM([#include <stdarg.h>], [
va_list ap;
volatile __int128_t x, base;
va_arg (ap, __int128_t);
x = (__int128_t)&base;
base = (__int128_t)&x;
x = x % base;

View File

@ -63,7 +63,7 @@ static int test1 (void)
cliaddr->toStrBuf(addrbuf, QSE_COUNTOF(addrbuf));
qse_printf (QSE_T("hello word..from %s\n"), addrbuf);
while (!server->isStopRequested())
while (!server.isStopRequested())
{
if ((n = clisock->receive(bb, QSE_COUNTOF(bb))) <= 0)
{