ref: 17f9d3dab46e02b3389f69d3e015544fe18a90da
parent: 85c9878c8aacfac6e5c8388529fa363e8a872ebc
author: Jean-Marc Valin <[email protected]>
date: Mon Jul 10 10:43:55 EDT 2017
Use snprintf() on newer MS compilers
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -63,7 +63,9 @@
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#ifdef _MSC_VER
-# define snprintf _snprintf
+# if (_MSC_VER < 1900)
+# define snprintf _snprintf
+# endif
#endif
struct StdioObject {