From 92d1689eb4a55e26d87d7e180ff3453bfcce010c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 31 Aug 2024 10:02:46 -0700
Subject: [PATCH] Added missing SDL_begin_code.h and SDL_close_code.h to
SDL_gpu.h
---
include/SDL3/SDL_gpu.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/SDL3/SDL_gpu.h b/include/SDL3/SDL_gpu.h
index 41156f99c760a..bba47cc4ffc43 100644
--- a/include/SDL3/SDL_gpu.h
+++ b/include/SDL3/SDL_gpu.h
@@ -27,8 +27,8 @@
* Include file for SDL GPU API functions
*/
-#ifndef SDL_GPU_H
-#define SDL_GPU_H
+#ifndef SDL_gpu_h_
+#define SDL_gpu_h_
#include <SDL3/SDL_stdinc.h>
#include <SDL3/SDL_pixels.h>
@@ -37,6 +37,7 @@
#include <SDL3/SDL_surface.h>
#include <SDL3/SDL_video.h>
+#include <SDL3/SDL_begin_code.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -2614,5 +2615,6 @@ extern SDL_DECLSPEC void SDLCALL SDL_GDKResumeGPU(SDL_GPUDevice *device);
#ifdef __cplusplus
}
#endif /* __cplusplus */
+#include <SDL3/SDL_close_code.h>
-#endif /* SDL_GPU_H */
+#endif /* SDL_gpu_h_ */