SDL: gpu: Fix forward declaration and inclusion of PrivateGPUDriver

From db817a37f499ee6222c5f395db1750b203fb5cad Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Mon, 24 Feb 2025 15:46:39 -0500
Subject: [PATCH] gpu: Fix forward declaration and inclusion of
 PrivateGPUDriver

---
 src/gpu/SDL_gpu.c    | 3 +++
 src/gpu/SDL_sysgpu.h | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c
index f2add3534b565..0897d1c914684 100644
--- a/src/gpu/SDL_gpu.c
+++ b/src/gpu/SDL_gpu.c
@@ -158,6 +158,9 @@
 
 #ifndef SDL_GPU_DISABLED
 static const SDL_GPUBootstrap *backends[] = {
+#ifdef SDL_GPU_PRIVATE
+    &PrivateGPUDriver,
+#endif
 #ifdef SDL_GPU_METAL
     &MetalDriver,
 #endif
diff --git a/src/gpu/SDL_sysgpu.h b/src/gpu/SDL_sysgpu.h
index 8975f50f77f50..6de1765f6d98a 100644
--- a/src/gpu/SDL_sysgpu.h
+++ b/src/gpu/SDL_sysgpu.h
@@ -989,7 +989,7 @@ extern "C" {
 extern SDL_GPUBootstrap VulkanDriver;
 extern SDL_GPUBootstrap D3D12Driver;
 extern SDL_GPUBootstrap MetalDriver;
-extern SDL_GPUBootstrap PS5Driver;
+extern SDL_GPUBootstrap PrivateGPUDriver;
 
 #ifdef __cplusplus
 }