From ecc55d19ba7ce083899459ebbe4b14c109e2bea9 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 13 Nov 2016 21:06:38 -0800 Subject: fixed uintptr_t on pre-c99 compilers --- tests/fuzzer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fuzzer.c b/tests/fuzzer.c index c5e1d09..4d8d8dd 100644 --- a/tests/fuzzer.c +++ b/tests/fuzzer.c @@ -49,7 +49,7 @@ /*-************************************ * Basic Types **************************************/ -#if defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */ +#if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) # include typedef uint8_t BYTE; typedef uint16_t U16; @@ -62,6 +62,7 @@ typedef unsigned short U16; typedef unsigned int U32; typedef signed int S32; typedef unsigned long long U64; +typedef size_t uintptr_t; /* true on most systems, except OpenVMS-64 (which doesn't need address overflow test) */ #endif -- cgit v0.12