curl-library
Re: sizeof long?
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 13 Aug 2008 12:34:17 -0700
Date: Wed, 13 Aug 2008 12:34:17 -0700
The long check also fails with the Open Watcom compiler. Here's a snippet
from config.log for the code that should work:
| typedef char dummy_arr[sizeof(long) == 4 ? 1 : -1];
|
| int
| main ()
| {
|
| dummy_arr[1] = (long)1;
|
| ;
| return 0;
| }
|
configure:4809: owcc -c -fmath=387 -Wextra conftest.c >&5
Error: Compiler returned a bad status compiling 'conftest.c'
conftest.c(36): Error! E1020: Dimension cannot be 0 or negative
conftest.c(42): Error! E1026: Invalid declarator
conftest.c(42): Error! E1009: Expecting ';' but found '='
conftest.c(42): Error! E1063: Missing operand
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-08-13