From ccb3ec86fc8cbfaa2e13c16e3c9952293670d564 Mon Sep 17 00:00:00 2001
From: pommicket <pommicket@gmail.com>
Date: Wed, 19 Feb 2025 16:50:31 -0500
Subject: code cleanup, remove broken usb identification

---
 3rd_party/stb_image_write.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 3rd_party/stb_image_write.c

(limited to '3rd_party/stb_image_write.c')

diff --git a/3rd_party/stb_image_write.c b/3rd_party/stb_image_write.c
new file mode 100644
index 0000000..1cd4413
--- /dev/null
+++ b/3rd_party/stb_image_write.c
@@ -0,0 +1,23 @@
+
+#ifdef __GNUC__
+#define no_warn_start _Pragma("GCC diagnostic push") \
+	_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
+	_Pragma("GCC diagnostic ignored \"-Wsign-conversion\"") \
+	_Pragma("GCC diagnostic ignored \"-Wsign-compare\"") \
+	_Pragma("GCC diagnostic ignored \"-Wconversion\"") \
+	_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
+	_Pragma("GCC diagnostic ignored \"-Wunused-function\"")
+
+#define no_warn_end _Pragma("GCC diagnostic pop")
+#else
+#define no_warn_start
+#define no_warn_end
+#endif
+
+#define STB_IMAGE_WRITE_IMPLEMENTATION
+#if __TINYC__
+#define STBI_NO_SIMD
+#endif
+no_warn_start
+#include "stb_image_write.h"
+no_warn_end
-- 
cgit v1.2.3