From 0581d0611551b1574a39d87293ce6a33b4a87333 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 28 May 2022 17:56:56 +0300
Subject: [PATCH] stb_image.h: remove stdlib.h dependency from the latest
upgrade.
---
stb_image.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/stb_image.h b/stb_image.h
index 7ca4107..8422a97 100644
--- a/stb_image.h
+++ b/stb_image.h
@@ -380,9 +380,14 @@ enum
STBI_rgb_alpha = 4
};
+#if 0 /* SDL_image change */
#include <stdlib.h>
typedef unsigned char stbi_uc;
typedef unsigned short stbi_us;
+#else
+typedef Uint8 stbi_uc;
+typedef Uint16 stbi_us;
+#endif
#ifdef __cplusplus
extern "C" {