ext/zstdruby/libzstd/legacy/zstd_v04.c in zstd-ruby-1.4.5.0 vs ext/zstdruby/libzstd/legacy/zstd_v04.c in zstd-ruby-1.4.9.0

- old
+ new

@@ -1,7 +1,7 @@ /* - * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc. + * Copyright (c) 2016-2021, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). @@ -50,11 +50,15 @@ /**************************************************************** * Basic Types *****************************************************************/ #if defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) -# include <stdint.h> +# if defined(_AIX) +# include <inttypes.h> +# else +# include <stdint.h> /* intptr_t */ +# endif typedef uint8_t BYTE; typedef uint16_t U16; typedef int16_t S16; typedef uint32_t U32; typedef int32_t S32; @@ -72,10 +76,10 @@ /*-************************************* * Debug ***************************************/ -#include "debug.h" +#include "../common/debug.h" #ifndef assert # define assert(condition) ((void)0) #endif