On Sun, Dec 01, 2013 at 11:31:31AM -0500, John Cowan wrote:
> Peter Bex <peter....@xs4all.nl> scripsit:
> 
> > However, I've tested all three Windows builds, and they all behave
> > equally well (or better) with s[n]printf() instead of gcvt().  We no
> > longer have a MSVC build, so the original problem probably was there,
> 
> As of Visual C++ 2005, Microsoft deprecated all the functions in the C
> Runtime Library that aren't part of ISO C.  So snprintf, which is part
> of Posix but not ISO C, appears as _snprintf.  This is a general problem
> which we'll have to solve if we ever want a VC++ build.  In some cases,
> like gcvt, the original function survives in deprecated form, but _gcvt
> is recommended.  This is all in the name of avoiding namespace pollution,
> a silly concern on Windows with its monstrous <windows.h> file.

We'll fix that when we get to it.  I think there may be other calls
like it which don't work as-is.  We could fix it in chicken.h by
aliasing it to C_snprintf or do it some other way.

Cheers,
Peter
-- 
http://www.more-magic.net

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to