From 2588f51ff2331322a50dba9405e1f8766f697ab7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 6 Oct 2020 00:54:37 +0200 Subject: [PATCH] Fix CXX_BUILD --- retroarch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retroarch.c b/retroarch.c index cf60303801..c4a9f249e2 100644 --- a/retroarch.c +++ b/retroarch.c @@ -12707,7 +12707,8 @@ global_t *global_get_ptr(void) **/ static void *video_thread_get_ptr(struct rarch_state *p_rarch) { - const thread_video_t *thr = VIDEO_DRIVER_GET_PTR_INTERNAL(true); + void *data = VIDEO_DRIVER_GET_PTR_INTERNAL(true); + const thread_video_t *thr = (const thread_video_t*)data; if (thr) return thr->driver_data; return NULL;