bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] automatic prototypes


From: Paul Eggert
Subject: Re: [bug-gnulib] automatic prototypes
Date: Wed, 15 Dec 2004 22:07:09 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> +  AH_BOTTOM([
> +#if defined HAVE_DECL_STRDUP && !HAVE_DECL_STRDUP
> +/* Duplicate S, returning an identical malloc'd string.  */
> +extern char *strdup (const char *s);
> +#endif
> +])

Something like that might work, I suppose.  Perhaps you could try
it for a while in one of your packages, and see how well it works
in practice?

Typically I've been leery about putting anything but #defines into
config.h.  But you're right that the #include is annoying.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]