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