[x264-devel] msvs: Don't redefine snprintf for VS2015
Henrik Gramner
git at videolan.org
Wed Aug 19 21:16:13 CEST 2015
x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun Jul 26 23:13:26 2015 +0200| [8a1ff031ecd4b423fc373540b9b68cdf97602bbf] | committer: Anton Mitrofanov
msvs: Don't redefine snprintf for VS2015
Visual Studio 2015 has a proper snprintf implementation.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8a1ff031ecd4b423fc373540b9b68cdf97602bbf
---
common/osdep.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/osdep.h b/common/osdep.h
index f997ed1..a94c525 100644
--- a/common/osdep.h
+++ b/common/osdep.h
@@ -52,9 +52,11 @@
#define inline __inline
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
-#define snprintf _snprintf
#define strtok_r strtok_s
#define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
+#if _MSC_VER < 1900
+#define snprintf _snprintf
+#endif
#endif
#if !defined(va_copy) && defined(__INTEL_COMPILER)
More information about the x264-devel
mailing list