diff options
author | Brent Cook <busterb@gmail.com> | 2019-01-01 15:57:36 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2019-01-01 22:56:13 -0600 |
commit | d5c155fcb8ab8d22f76e2f0b52728eade540bd67 (patch) | |
tree | 935262b963128922a2b930f782a322e617d7f110 | |
parent | 68314274425aa93c2a86cbbdf867ceea69310351 (diff) | |
download | portable-d5c155fcb8ab8d22f76e2f0b52728eade540bd67.tar.gz portable-d5c155fcb8ab8d22f76e2f0b52728eade540bd67.tar.bz2 portable-d5c155fcb8ab8d22f76e2f0b52728eade540bd67.zip |
add stdint.h shim, include limits for SIZE_MAX on Android
-rw-r--r-- | include/compat/stdint.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/compat/stdint.h b/include/compat/stdint.h new file mode 100644 index 0000000..2829151 --- /dev/null +++ b/include/compat/stdint.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | * Public domain | ||
3 | * stdint.h compatibility shim | ||
4 | */ | ||
5 | |||
6 | #ifdef _MSC_VER | ||
7 | #include <../include/stdint.h> | ||
8 | #else | ||
9 | #include_next <stdint.h> | ||
10 | #endif | ||
11 | |||
12 | #ifndef LIBCRYPTOCOMPAT_STDINT_H | ||
13 | #define LIBCRYPTOCOMPAT_STDINT_H | ||
14 | |||
15 | #ifndef SIZE_MAX | ||
16 | #include <limits.h> | ||
17 | #endif | ||
18 | |||
19 | #endif | ||