From 006f14ac196211d6cba6e4754cd8e69baa4cc69f Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 22 Jan 2024 00:14:00 +0900 Subject: [PATCH] internal/graphicsdriver/playstation5: bug fix: link error --- .../graphicsdriver/playstation5/graphics_playstation5.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/graphicsdriver/playstation5/graphics_playstation5.h b/internal/graphicsdriver/playstation5/graphics_playstation5.h index 1b8b9f5db..e6894f2c4 100644 --- a/internal/graphicsdriver/playstation5/graphics_playstation5.h +++ b/internal/graphicsdriver/playstation5/graphics_playstation5.h @@ -14,6 +14,9 @@ //go:build playstation5 +#ifndef EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H +#define EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H + #include #include @@ -26,7 +29,7 @@ typedef struct ebitengine_Error { int code; } ebitengine_Error; -bool ebitengine_IsErrorNil(ebitengine_Error* err) { +static bool ebitengine_IsErrorNil(ebitengine_Error* err) { return err->message == NULL && err->code == 0; } @@ -41,3 +44,5 @@ void ebitengine_DisposeShader(int id); #ifdef __cplusplus } // extern "C" #endif + +#endif // EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H