|
![](/i/fill.gif) |
In article <40e69680$1@news.povray.org> , Nicolas Calimet
<pov### [at] free fr> wrote:
>> - vsnprintf is unknown (whereas vsprintf is ok)
>
> As Thorsten wrote, this is a sign of too old C library. And
> reverting to the non-n version is not an option, nor is it to try to
> provide an alternate implementation. It is very likely that I will
> just make configure stop with error if vsnprintf is not found.
BTW, as a shortcut to testing for various standard library functions
existing, you could also test if a ISO C 1999 standard C library is present
if you test that __STDC_VERSION__ is equal *or* greater than 199901L (make
sure you compile it as C not C++ code, that is, use a ".c" rather than a
".cpp" extension and make sure to call a C not the C++ compiler) i.e. with
int main()
{
return __STDC_VERSION__;
}
However, if this fails (and at least for gcc 3.3 on Mac OS X it does) you
will still have to perform various individual checks...
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |