summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-14 05:06:38 (GMT)
committerYann Collet <cyan@fb.com>2016-11-14 05:06:38 (GMT)
commitecc55d19ba7ce083899459ebbe4b14c109e2bea9 (patch)
treed1bb6693d973445fd3731d0cf67c590d7f6e7bc0
parent3d3ccc1544d3332515bc77f1d9942ddeda2f8d94 (diff)
downloadlz4-ecc55d19ba7ce083899459ebbe4b14c109e2bea9.zip
lz4-ecc55d19ba7ce083899459ebbe4b14c109e2bea9.tar.gz
lz4-ecc55d19ba7ce083899459ebbe4b14c109e2bea9.tar.bz2
fixed uintptr_t on pre-c99 compilers
-rw-r--r--tests/fuzzer.c3
1 files changed, 2 insertions, 1 deletions
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 <stdint.h>
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