|
05/12/2009 11:20 AM
post29274
|
Mario Charest wrote:
> That's the part that confuses me. I mean the standard must have change for DBL_MAX to be a non constant which breaks
existing code, at any rate I understand that's the ways it is and will have to fix the code. Thanks.
Yes, I believe in C99 DBL_MAX to changed to be a const expression to
specifically so it used as an global var initializer. By default, gcc
follows gnu89. If you specify, -std=c99 to the compiler, it will define
__STDC_VERSION__ to be 199901L and DBL_MAX will be defined as a const expr.
Regards,
Ryan Mansfield
|
|
|
|
|