[Top][All Lists]

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

Re: check for C99-compliant snprintf

From: Paul Eggert
Subject: Re: check for C99-compliant snprintf
Date: Fri, 16 Feb 2007 11:43:27 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Ben Pfaff <address@hidden> writes:

> We could of course test whether the system is Windows, using
>   #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
> or similar.  Is that a better idea?

Do you mean to have two Autoconf tests, one at compile-time (with the
above code), and one at run-time (with the code proposed earlier)?
I.e., do the run-time test only if the compile-time test indicates
that there may be trouble.  That sounds a bit fancy, but it would

Or, you could just do the compile-time test and assume the bug exists
if it fails.  That should be good enough, too.

reply via email to

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