aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alloopback.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-04-22 11:24:39 -0700
committerChris Robinson <[email protected]>2022-04-22 11:24:39 -0700
commite7a2c0af762e19c336447e2034ee7ed81f111009 (patch)
tree559fefdaf0b59743c8cab19d0cdd0f355247c3b2 /examples/alloopback.c
parent1050428d3d463616c622d3f95effa313bf334249 (diff)
Define FUNCTION_CAST in a common header
Diffstat (limited to 'examples/alloopback.c')
-rw-r--r--examples/alloopback.c2
1 files changed, 1 insertions, 1 deletions
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);