From 85529e8536956391a616b24db88f1e422856cb44 Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Tue, 5 Aug 2025 22:16:27 +0200 Subject: [PATCH] ensure only one stb_image declaration --- lib/n64graphics/n64graphics.c | 1 - lib/n64graphics/stb_image.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 lib/n64graphics/stb_image.c diff --git a/lib/n64graphics/n64graphics.c b/lib/n64graphics/n64graphics.c index 6dbcc22..e7f6102 100644 --- a/lib/n64graphics/n64graphics.c +++ b/lib/n64graphics/n64graphics.c @@ -9,7 +9,6 @@ #define STBI_NO_LINEAR #define STBI_NO_HDR #define STBI_NO_TGA -#define STB_IMAGE_IMPLEMENTATION #include #define STB_IMAGE_WRITE_IMPLEMENTATION #include diff --git a/lib/n64graphics/stb_image.c b/lib/n64graphics/stb_image.c new file mode 100644 index 0000000..8ddfd1f --- /dev/null +++ b/lib/n64graphics/stb_image.c @@ -0,0 +1,2 @@ +#define STB_IMAGE_IMPLEMENTATION +#include "stb_image.h"