This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Pixel <pixel@mandriva.com> writes:
> solution below: do not rely in HAVE_DECL_ASPRINTF when __GNU_LIBRARY__ is set > > (another solution would be to ensure HAVE_DECL_ASPRINTF is detected with _GNU_SOURCE set)
I think a slightly more reliable solution would be
#ifndef asprintf extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2; #endif
with an appropriate comment.
Ian
We have test that code on two system and gcc binutils gdb compiles fine. /zorry
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |