bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] gawk's configure fails to find size_t


From: bugdal
Subject: [bug-gawk] gawk's configure fails to find size_t
Date: Fri, 11 May 2012 11:24:40 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

For some reason, gawk's configure script is testing for size_t (and
perhaps other types) with this code:

int
main ()
{
if (sizeof (($2)))
            return 0;
  ;
  return 0;
}

where $2 is replaced by size_t. This is always going to fail, since
sizeof((size_t)) is not valid C. The correct usage would be sizeof($2)
(i.e. sizeof(size_t)), but I'm not sure why sizeof is being used here
at all. Just declaring a variable of the type, as in:

int
main ()
{
$2 x;
  return 0;
}


should work just as well to test if the type is defined.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]