why not just

#if defined MSVC
# define snprintf _snprintf
# define vsnprintf _vsnprintf
#define _CRT_SECURE_NO_WARNINGS
#endif

where ever sprintf and family are used

http://msdn.microsoft.com/en-us/library/1kt27hek(VS.80).aspx
http://msdn.microsoft.com/en-us/library/2ts7cx93(VS.71).aspx


On Feb 28, 2009, at 8:14 AM, Sven Panne wrote:

Am Donnerstag, 19. Februar 2009 17:35:15 schrieb Paul Martz:
[...]
* I get a lot of compiler warnings, all of which are 4996, like so:
   warning C4996: 'sprintf': This function or variable may be unsafe.
Consider using sprintf_s instead. To disable deprecation, use
_CRT_SECURE_NO_WARNINGS. See online help for details.

FYI: I've just committed changes to avoid the use of sprintf. If VC still
complains (this time about vsnprintf), somebody with VC access should add
pragmas to silence these warnings, they would be of no use.

[...]
* I don't really care for the state my desktop is left in after I run the
"one" demo, which changes my screen resolution to something like
640x480x16, and correspondingly rearranges and resizes all my open windows.
Is there plans to retire this functionality, or at least retire the demo?
I'm kind of anal retentive about how my desktop is laid out, and don't care
to have software rearrange it. :-)

This one is still open, but I don't think that it is a show-stopper for a
release.

Cheers,
  S.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freeglut-developer