View Single Post
Old 11-21-2007, 04:35 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 673
DJMaze is on a distinguished road
The ltoa POSIX function is deprecated beginning in M$ Visual C++ 2005.
Use the ISO C++ conformant _ltoa or security-enhanced _ltoa_s instead.

The _ltoa function is deprecated if the security-enhanced _ltoa_s exists.

Security Enhancements in the CRT

So in M$VC++ use _s wherever you can.
It would be wise to have everything _s and then a definitions file to define macro's if a *_s doesn't exist.

Solution sounds stupid so i always use my own macro's similar to:
Code:
#ifdef w32
  #define maze_ltoa _ltoa_s
#else
  #define maze_ltoa ltoa
#endif
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote