diff options
author | Martijn Berger <martijn.berger@gmail.com> | 2015-12-10 13:49:53 +0300 |
---|---|---|
committer | Martijn Berger <martijn.berger@gmail.com> | 2015-12-10 13:57:13 +0300 |
commit | ffc750a4fafc6fe4e6fb556506becaa0e1ce8c9a (patch) | |
tree | 9b367e391bd77659841714c40a80f6e1a2c0654a /source/blender | |
parent | 5f0cf67882062bc7f9d1f99d25a191330fa9443e (diff) |
Begin to add some MSVC 2015 support
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/BLI_winstuff.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_winstuff.h b/source/blender/blenlib/BLI_winstuff.h index 8cf6f188e19..b421b7dbb90 100644 --- a/source/blender/blenlib/BLI_winstuff.h +++ b/source/blender/blenlib/BLI_winstuff.h @@ -90,7 +90,9 @@ extern "C" { #endif /* defines for using ISO C++ conformant names */ -#define snprintf _snprintf +#if !defined(_MSC_VER) || _MSC_VER < 1900 +# define snprintf _snprintf +#endif #if defined(_MSC_VER) || (defined(FREE_WINDOWS) && !defined(FREE_WINDOWS64)) # define R_OK 4 |