From 20eb43662abb44209dd903989ce85fde3d680b55 Mon Sep 17 00:00:00 2001 From: christianhaitian Date: Sat, 7 Dec 2024 20:31:47 -0500 Subject: [PATCH] Update gpulib_thread_if.c to fix compiling for armhf --- plugins/gpulib/gpulib_thread_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/gpulib/gpulib_thread_if.c b/plugins/gpulib/gpulib_thread_if.c index c625c552..443592ca 100644 --- a/plugins/gpulib/gpulib_thread_if.c +++ b/plugins/gpulib/gpulib_thread_if.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include "../gpulib/gpu.h" #include "../../frontend/plugin_lib.h" @@ -78,6 +79,7 @@ static void *video_thread_main(void *arg) { #if defined(__arm__) && defined(__ARM_FP) // RunFast mode + typedef uint32_t u32; u32 fpscr = ~0; __asm__ volatile("vmrs %0, fpscr" : "=r"(fpscr)); fpscr &= ~0x00009f9f;