aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-07-07 19:51:51 +0200
committercrueter <crueter@eden-emu.dev>2026-07-07 19:51:51 +0200
commitbfc0e60333310c252e168b354ba3eb0802510864 (patch)
treee6b5047e813252c10ff77fa3a03260caf3e540d3 /src/common
parent072be286d1f784cdd8f2f975bb57454f42606ad3 (diff)
[externals/stb] only include JPEG functions, disable all others (#4179)
we use JPEG only with STB, dont need the others which are included in the final binary, after gc+lto this doesnt affect stb_dxt, which still includes all required BCn stuff Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4179 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/stb.cpp10
-rw-r--r--src/common/stb.h4
2 files changed, 11 insertions, 3 deletions
diff --git a/src/common/stb.cpp b/src/common/stb.cpp
index d3b16665d4..c80cc2526d 100644
--- a/src/common/stb.cpp
+++ b/src/common/stb.cpp
@@ -1,8 +1,12 @@
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
-#define STB_IMAGE_IMPLEMENTATION
-#define STB_IMAGE_RESIZE_IMPLEMENTATION
-#define STB_IMAGE_WRITE_IMPLEMENTATION
+#define STB_IMAGE_IMPLEMENTATION 1
+#define STB_IMAGE_RESIZE_IMPLEMENTATION 1
+#define STB_IMAGE_WRITE_IMPLEMENTATION 1
+#define STBI_ONLY_JPEG 1
#include "common/stb.h"
diff --git a/src/common/stb.h b/src/common/stb.h
index e5c197c11d..c2b5f54de5 100644
--- a/src/common/stb.h
+++ b/src/common/stb.h
@@ -1,8 +1,12 @@
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
+#define STBI_ONLY_JPEG 1
#include <stb_image.h>
#include <stb_image_resize.h>
#include <stb_image_write.h>