shithub: libopusenc

Download patch

ref: 85c9878c8aacfac6e5c8388529fa363e8a872ebc
parent: 36b7f577fa889912acbf54d7dd7a9d1d19422608
author: Jean-Marc Valin <[email protected]>
date: Mon Jul 10 10:22:46 EDT 2017

Using _snprintf() on windows

--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -62,6 +62,10 @@
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 
+#ifdef _MSC_VER
+# define snprintf _snprintf
+#endif
+
 struct StdioObject {
   FILE *file;
 };