[cmake] win32.cmake: Enable secure template overloads.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sat, 5 Sep 2015 03:40:02 +0000 (23:40 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sat, 5 Sep 2015 03:40:02 +0000 (23:40 -0400)
commit0e7ea1f1addec651851b12be7184c4c3f8db8771
treec479ff9ef47f38dc33454718ff08993d66466f5e
parent3f8c3204f809afd2a7919808d9366c9743d01de0
[cmake] win32.cmake: Enable secure template overloads.

This allows MSVC to silently replace certain "unsafe" functions,
e.g. memcpy(), with Microsoft's "secure" versions, e.g. memcpy_s(),
without making any code changes.

MinGW also supports this, though it didn't seem to do anything in my
tests, probably because I'm still targetting the base MSVCRT.DLL.

Moved common Win32 CFLAGS out of the compiler-specific .cmake files
and into win32.cmake.
cmake/platform/win32-gcc.cmake
cmake/platform/win32-msvc.cmake
cmake/platform/win32.cmake