From: Ben Greear <greearb@candelatech.com>
To: Johannes Stezenbach <js@sig21.net>
Cc: Andreas Schwab <schwab@linux-m68k.org>, linux-wireless@vger.kernel.org
Subject: Re: Patch to get iw building on Fedora 8
Date: Wed, 22 Sep 2010 09:52:58 -0700 [thread overview]
Message-ID: <4C9A346A.3050909@candelatech.com> (raw)
In-Reply-To: <20100921213451.GA29134@sig21.net>
On 09/21/2010 02:34 PM, Johannes Stezenbach wrote:
> On Tue, Sep 21, 2010 at 02:09:57PM -0700, Ben Greear wrote:
>> On 09/21/2010 12:49 PM, Andreas Schwab wrote:
>>> Ben Greear<greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> writes:
>>>
>>>> I need this in order to get iw to build on Fedora 8.
>>>>
> ...
>>>> +#define __USE_ISOC99
>>>
>>> This is wrong. You must never define internal glibc macros.
>>
>> How about this then?
> ...
>> - tmpf = strtof(argv[i],&end);
>> + tmpf = strtod(argv[i],&end);
> ...
>> Seems you don't have to do anything clever to get strtod to work,
>> and I assume it should cast just fine.
>
> I think to use C99 features like strtof() you need to either
> add -std=c99 to CFLAGS, or #define _ISOC99_SOURCE
> (see /usr/include/features.h).
It seems using strtod would be simpler all around, and might work on
more compilers and even more ancient systems.
Thanks,
Ben
>
> HTH,
> Johannes
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2010-09-22 16:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 16:39 Patch to get iw building on Fedora 8 Ben Greear
2010-09-21 17:28 ` Johannes Berg
2010-09-23 23:05 ` Ben Greear
2010-09-24 9:31 ` Johannes Berg
2010-09-24 13:45 ` Ben Greear
2010-09-24 13:58 ` Johannes Berg
2010-09-21 19:49 ` Andreas Schwab
2010-09-21 21:09 ` Ben Greear
2010-09-21 21:34 ` Johannes Stezenbach
2010-09-22 16:52 ` Ben Greear [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C9A346A.3050909@candelatech.com \
--to=greearb@candelatech.com \
--cc=js@sig21.net \
--cc=linux-wireless@vger.kernel.org \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.