I have a project that I’m building with Visual Studio 2005. The sources are also used in another project that gets built using Visual Studio 6.
This results in potential errors since the new _s-functions introduced by the Security Enhancements in the CRT are not present in VS6.
To ensure that my sources are also playing nice with VS6 while not having to keep a separate installation of VS6, I’d like to compile them with VS2005 but disable the new secure functions (introduced by the Security Enhancements). Is that possible?
The answer given by Sergius inspired me to run a home made way:
secure.c#if (_MSC_VER >= 1400)for i in $(cat secure_functions.txt)do
grep -rn --exclude "secure.c" -w $i path/to/sources
done
Backup: if someone wants to do that too, here’s the list of secure functions: