[PATCH] Fix build on older compilers that do not support 'd' suffix.

Jouni Malinen j
Sat Aug 31 07:03:12 PDT 2013

On Wed, Aug 14, 2013 at 10:59:31AM -0700, greearb at candelatech.com wrote:
> Things like:  if (foo > 0.0d) { }
> fails to compile on Fedora 13 (at least) because the compiler
> does not support a 'd' suffix properly.
> Use a slightly uglier explicit cast to double to work around
> this compiler limitation.

These are all pretty ugly and in code that is not normally built in. Do
we really care about Fedora 13 that had its end-of-life two years ago? I
could understand this for areas that would be included by default in the
compilation or for some more common use cases, but none of the modified
places here seemed to qualify for that.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list