Don't #define snprintf in VS 2015 or higher.
authorJohann <johannkoenig@google.com>
Thu, 7 May 2015 23:41:33 +0000 (16:41 -0700)
committerJohann <johannkoenig@google.com>
Thu, 28 May 2015 01:28:25 +0000 (18:28 -0700)
commitcad0eca25c36e9b8234aaecb4dedc25cbccd6d14
treec0b5343334d1db418734d35492749daf0bb664cd
parented93470a69818c6fd7994fecbcf7fb1a7e8d2ccd
Don't #define snprintf in VS 2015 or higher.

In VS 2015 and higher snprintf is supplied and therefore vsnprintf
doesn't need to be defined. This also avoids problems caused by
_snprintf being different from snprintf.

This fixes a build break with VS 2015 and improves security.

Originally submitted via chromium by brucedawson@chromium.org
https://codereview.chromium.org/1055603003

Additionally break this MSVC-specific tweak to a new file, which will
become the home of all such MSVC-specific things.

This requires adding a dependency on msvc.h to every example which uses
args.c and tools_common.h

Change-Id: I35b5f8e7ea00f6627403aabc9ea79b0412557a99
args.c
examples.mk
tools_common.h
vp9/common/vp9_systemdependent.h
vpx_ports/msvc.h [new file with mode: 0644]
vpx_ports/vpx_ports.mk