shithub: openh264

Download patch

ref: 6d93d800e7a667967d0dba228ba73d77be0c2960
parent: d3fab249b2c257e9899533d311207600b48f78f7
author: Martin Storsjö <martin@martin.st>
date: Fri Apr 11 06:06:00 EDT 2014

Make the first C function parameter const void* in c_interface_test

This fixes warnings when building with MSVC.

--- a/test/api/c_interface_test.c
+++ b/test/api/c_interface_test.c
@@ -2,7 +2,7 @@
 #include <stddef.h>
 
 // Cast to this function type to ignore other parameters.
-typedef int (*Func)(void*);
+typedef int (*Func)(const void*);
 #define CALL(p, m) (((Func)((*p)->m))(p))
 // Check if the function return an expected number.
 #define CHECK(n, p, m) check(n, CALL(p, m), #m)