diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-21 08:44:59 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-21 08:44:59 (GMT) |
commit | 9546ba62d01a9618aab91eafe77929120653d275 (patch) | |
tree | 7f6d9fb37fe6db0212ce4390e21c59ad608e5393 /tests/frametest.c | |
parent | 452cc970d6b35601a2501dab47050592c97bc4ed (diff) | |
download | lz4-9546ba62d01a9618aab91eafe77929120653d275.zip lz4-9546ba62d01a9618aab91eafe77929120653d275.tar.gz lz4-9546ba62d01a9618aab91eafe77929120653d275.tar.bz2 |
executables use basic types from util.h
Diffstat (limited to 'tests/frametest.c')
-rw-r--r-- | tests/frametest.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/tests/frametest.c b/tests/frametest.c index a99728f..ba971d6 100644 --- a/tests/frametest.c +++ b/tests/frametest.c @@ -27,7 +27,6 @@ * Compiler specific **************************************/ #ifdef _MSC_VER /* Visual Studio */ -# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */ # pragma warning(disable : 4146) /* disable: C4146: minus unsigned expression */ #endif @@ -35,6 +34,8 @@ /*-************************************ * Includes **************************************/ +#include "platform.h" /* Compiler options */ +#include "util.h" /* U32 */ #include <stdlib.h> /* malloc, free */ #include <stdio.h> /* fprintf */ #include <string.h> /* strcmp */ @@ -45,25 +46,6 @@ #include "xxhash.h" /* XXH64 */ -/*-************************************ -* Basic Types -**************************************/ -#if !defined(__VMS) && (defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include <stdint.h> -typedef uint8_t BYTE; -typedef uint16_t U16; -typedef uint32_t U32; -typedef int32_t S32; -typedef uint64_t U64; -#else -typedef unsigned char BYTE; -typedef unsigned short U16; -typedef unsigned int U32; -typedef signed int S32; -typedef unsigned long long U64; -#endif - - /* unoptimized version; solves endianess & alignment issues */ static void FUZ_writeLE32 (void* dstVoidPtr, U32 value32) { |