Skip to content

Commit

Permalink
Use stdint.h instead of inttypes.h (#223)
Browse files Browse the repository at this point in the history
This improves support for targeting wasm32 with clang 12.
  • Loading branch information
mwilliamson committed Jan 4, 2024
1 parent 0a8526c commit a78bee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utf8proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
#include <stdlib.h>

#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;
Expand Down Expand Up @@ -107,7 +107,7 @@ typedef bool utf8proc_bool;
#else
# include <stddef.h>
# include <stdbool.h>
# include <inttypes.h>
# include <stdint.h>
typedef int8_t utf8proc_int8_t;
typedef uint8_t utf8proc_uint8_t;
typedef int16_t utf8proc_int16_t;
Expand Down

0 comments on commit a78bee9

Please sign in to comment.