[uClibc]long long functions in stdlib

Manuel Novoa III mjn3 at codepoet.org
Tue Jul 9 23:53:50 UTC 2002


Hello,

On Tue, Jul 09, 2002 at 04:01:41PM -0700, Jason Huang wrote:
> I did not have the problem last yesterday. I made a fresh update from
> cvs.uclinux.org and it complained '__a' in libc/stdlib/drand48_iter.c. I
> guess someone put this drand48 in without checking against no-long-long.

drand48-iter.c has been there for some time.  I changed stdlib.h to
exclude all long long references when long long support was disabled.

> What I did was modifying (temporarily) libc/stdlib/Makefile:
> ifeq ($(HAS_LONG_LONG),true)
> CSRC += drand48_ ...
> endif
>
> I hope someone fixes in the cvs.

drand48-iter.c needs to be rewritten, not excluded.  Also, there are
a number of other functions that use long long or (u)int64_t that
need to be modified or rewritten.  I'll be doing some of that as time
permits, but it isn't a priority.

Manuel



More information about the uClibc mailing list