lua-users home
lua-l archive

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


> "luaconf.h", line 391: Error:
>   [ISO 6.8.1]: Can't have target dependent '#if' at outer level.
> 
> [...]

The line in question is this:

> #if INT_MAX-20 < 32760

The ANSI specification says this about INT_MAX:

| The values given below shall be replaced by constant expressions suitable
| for use in #if preprocessing directives.

(That is, it explicitly allows target-dependent constants in #ifs.)  So,
it seems that this compiler does not follow the standard.

-- Roberto