This is the mail archive of the gcc-patches@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]

Re: [PATCH]: Add builtins [v]asprintf and [v]dprintf


 > (I don't think users declaring the functions themselves rather than 
 > defining _GNU_SOURCE to get the definitions is particularly good 
 > practice.)

Maybe so, but that's precisely what we do now ourselves.
This is from my linux-gnu box configuring GCC:

 > checking for asprintf... yes
 > checking for vasprintf... yes
 > [...]
 > checking whether asprintf is declared... no
 > checking whether vasprintf is declared... no


Luckily I stuck an ATTRIBUTE_PRINTF on the backup decls in libiberty.h
long ago, but that doesn't mean every package has maintainers quite as
meticulous.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]