From: Yann Collet Date: Mon, 14 Nov 2016 05:06:38 +0000 (-0800) Subject: fixed uintptr_t on pre-c99 compilers X-Git-Tag: upstream/1.9.3~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecc55d19ba7ce083899459ebbe4b14c109e2bea9;p=platform%2Fupstream%2Flz4.git fixed uintptr_t on pre-c99 compilers --- 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