From 7374a161061af0731155e4b7f713d420a5bdfdb9 Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Sat, 27 Jul 2024 09:11:23 +0800
Subject: [PATCH 09/11] Add missing header includes

https://bugs.debian.org/1065764
---
 stb_divide.h | 2 ++
 stb_dxt.h    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/stb_divide.h b/stb_divide.h
index 6a51e3f..682af0d 100644
--- a/stb_divide.h
+++ b/stb_divide.h
@@ -104,6 +104,8 @@ extern int stb_mod_eucl (int value_to_be_divided, int value_to_divide_by);
 
 #ifdef STB_DIVIDE_IMPLEMENTATION
 
+#include <stdlib.h>
+
 #if defined(__STDC_VERSION) && __STDC_VERSION__ >= 19901
    #ifndef C_INTEGER_DIVISION_TRUNCATES
       #define C_INTEGER_DIVISION_TRUNCATES
diff --git a/stb_dxt.h b/stb_dxt.h
index 6150a87..89e09ed 100644
--- a/stb_dxt.h
+++ b/stb_dxt.h
@@ -83,6 +83,7 @@ STBDDEF void stb_compress_bc5_block(unsigned char *dest, const unsigned char *sr
 // #define STB_DXT_USE_ROUNDING_BIAS
 
 #include <stdlib.h>
+#include <string.h>
 
 #if !defined(STBD_FABS)
 #include <math.h>
-- 
2.47.2

