aboutsummaryrefslogtreecommitdiff
path: root/lib/legacy/zstd_v02.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/legacy/zstd_v02.c')
-rw-r--r--lib/legacy/zstd_v02.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/legacy/zstd_v02.c b/lib/legacy/zstd_v02.c
index 32d45a6d..9abb6d03 100644
--- a/lib/legacy/zstd_v02.c
+++ b/lib/legacy/zstd_v02.c
@@ -89,7 +89,11 @@ extern "C" {
* 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;