From e7a2c0af762e19c336447e2034ee7ed81f111009 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 22 Apr 2022 11:24:39 -0700 Subject: Define FUNCTION_CAST in a common header --- examples/alloopback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/alloopback.c') diff --git a/examples/alloopback.c b/examples/alloopback.c index 844efa74..7513458b 100644 --- a/examples/alloopback.c +++ b/examples/alloopback.c @@ -149,7 +149,7 @@ int main(int argc, char *argv[]) } /* Define a macro to help load the function pointers. */ -#define LOAD_PROC(T, x) ((x) = (T)alcGetProcAddress(NULL, #x)) +#define LOAD_PROC(T, x) ((x) = FUNCTION_CAST(T, alcGetProcAddress(NULL, #x))) LOAD_PROC(LPALCLOOPBACKOPENDEVICESOFT, alcLoopbackOpenDeviceSOFT); LOAD_PROC(LPALCISRENDERFORMATSUPPORTEDSOFT, alcIsRenderFormatSupportedSOFT); LOAD_PROC(LPALCRENDERSAMPLESSOFT, alcRenderSamplesSOFT); -- cgit v1.2.3