From d5c155fcb8ab8d22f76e2f0b52728eade540bd67 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Tue, 1 Jan 2019 15:57:36 -0600 Subject: [PATCH] add stdint.h shim, include limits for SIZE_MAX on Android --- include/compat/stdint.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/compat/stdint.h 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 @@ +/* + * Public domain + * stdint.h compatibility shim + */ + +#ifdef _MSC_VER +#include <../include/stdint.h> +#else +#include_next +#endif + +#ifndef LIBCRYPTOCOMPAT_STDINT_H +#define LIBCRYPTOCOMPAT_STDINT_H + +#ifndef SIZE_MAX +#include +#endif + +#endif