Jim Meyering <[EMAIL PROTECTED]> writes:
> Paul Eggert <[EMAIL PROTECTED]> writes:

>> Hmm, that doesn't match my recollection.  I just checked, and
>> SunOS 4.1.4 cc compiles and runs the following program just fine:

>> #if 0
>>  #error "foo"
>> #endif
>> main() { return 0; }

Saying that SunOS cc ignores preprocessor directives beginning with
whitespace.

> I didn't test it, but rather based it on a fileutils ChangeLog entry
> from you.  Maybe you were using a different version of cc back when you
> wrote it?

[...]

>    #   else
>   -#    error No 32-bit type available!
>   +      /* The following line is intended to throw an error.
>   +    Using #error is not portable enough.  */
>   +      "No 32-bit type available!"
>    #   endif
>    #  endif
>    # endif

Saying that SunOS doesn't do the right thing with an #error directive that
does begin in column one (but in this case has whitespace between the #
and "error").

I think these are two different things.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to