[En-Nut-Discussion] Problem with stdlib.h on Linux

Harald Kipp harald.kipp at egnite.de
Fri Feb 4 18:51:58 CET 2005


Ole,

Unfortunately it doesn't, because in the stdlib.h provided
by Robert it's

   extern double atof(const char *__nptr);

which is not recognized as a definition by the preprocessor.
So the #ifndef is still true.

Harald

At 18:11 04.02.2005 +0100, you wrote:
>Hi Harald,
>
> >    #ifndef atof
> >    #define atof(s)           strtod(s, 0)
> >    #endif
>
>I just added an ifndef around the above lines in include/arch/avr.h CVS
>HEAD some days ago... That should do the trick for different versions of
>stdlib.h
>
>Bye,
>
>Ole




More information about the En-Nut-Discussion mailing list