Skip to content

Commit

Permalink
internal/graphicsdriver/playstation5: bug fix: link error
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jan 21, 2024
1 parent 52e0f10 commit 006f14a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/graphicsdriver/playstation5/graphics_playstation5.h
Expand Up @@ -14,6 +14,9 @@

//go:build playstation5

#ifndef EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H
#define EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H

#include <stdbool.h>
#include <stddef.h>

Expand All @@ -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;
}

Expand All @@ -41,3 +44,5 @@ void ebitengine_DisposeShader(int id);
#ifdef __cplusplus
} // extern "C"
#endif

#endif // EBITENGINE_INTERNAL_GRAPHICSDRIVER_PLAYSTATION5_GRAPHICS_PLAYSTATION5_H

0 comments on commit 006f14a

Please sign in to comment.