From fed0ef350d51d16566137ec975c7bfcbbccecaae Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 8 Jan 2012 22:41:52 +0000 Subject: CONFIGURE: Better test for 32-bitness courtsey of LordHoto --- configure | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 1be4284184..c10e10aab1 100755 --- a/configure +++ b/configure @@ -1711,9 +1711,7 @@ EOF pointer_is_32bit() { cat > tmp_pointer_is_32bit.cpp << EOF int main() { - void *p; - int v = (int)p; - return 0; + static int test_array[1 - 2 * !(sizeof(void *) == 4)]; } EOF $CXX $CXXFLAGS -c -o $TMPO.o tmp_pointer_is_32bit.cpp 2>/dev/null -- cgit v1.2.3