Make the first C function parameter const void* in c_interface_test

This fixes warnings when building with MSVC.
This commit is contained in:
Martin Storsjö 2014-04-11 10:06:00 +03:00
parent d3fab249b2
commit 6d93d800e7

View File

@ -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)