Skip to content

Commit a78bee9

Browse files
authored
Use stdint.h instead of inttypes.h (#223)
This improves support for targeting wasm32 with clang 12.
1 parent 0a8526c commit a78bee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utf8proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#include <stdlib.h>
8080

8181
#if defined(_MSC_VER) && _MSC_VER < 1800
82-
// MSVC prior to 2013 lacked stdbool.h and inttypes.h
82+
// MSVC prior to 2013 lacked stdbool.h and stdint.h
8383
typedef signed char utf8proc_int8_t;
8484
typedef unsigned char utf8proc_uint8_t;
8585
typedef short utf8proc_int16_t;
@@ -107,7 +107,7 @@ typedef bool utf8proc_bool;
107107
#else
108108
# include <stddef.h>
109109
# include <stdbool.h>
110-
# include <inttypes.h>
110+
# include <stdint.h>
111111
typedef int8_t utf8proc_int8_t;
112112
typedef uint8_t utf8proc_uint8_t;
113113
typedef int16_t utf8proc_int16_t;

0 commit comments

Comments
 (0)