From a78bee90c2b10b3b8ad61abcb69cb61e93b6d9bd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 4 Jan 2024 00:34:07 +0000 Subject: [PATCH] Use stdint.h instead of inttypes.h (#223) This improves support for targeting wasm32 with clang 12. --- utf8proc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utf8proc.h b/utf8proc.h index 631553c..ad1f2f8 100644 --- a/utf8proc.h +++ b/utf8proc.h @@ -79,7 +79,7 @@ #include #if defined(_MSC_VER) && _MSC_VER < 1800 -// MSVC prior to 2013 lacked stdbool.h and inttypes.h +// MSVC prior to 2013 lacked stdbool.h and stdint.h typedef signed char utf8proc_int8_t; typedef unsigned char utf8proc_uint8_t; typedef short utf8proc_int16_t; @@ -107,7 +107,7 @@ typedef bool utf8proc_bool; #else # include # include -# include +# include typedef int8_t utf8proc_int8_t; typedef uint8_t utf8proc_uint8_t; typedef int16_t utf8proc_int16_t;