[PATCH] Fix build on older compilers that do not support 'd' suffix.
Ben Greear
greearb
Sat Aug 31 08:41:52 PDT 2013
On 08/31/2013 07:03 AM, Jouni Malinen wrote:
> 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.
I figured that there might be other embedded systems using older compilers
that might benefit from this.
Not a big deal though.
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Hostap
mailing list