From 1aa0020cce544ab7cd20367957f0ecc7799bf497 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 24 Jun 2024 14:28:13 +0300 Subject: [PATCH] Guard int128_t typedef --- libbf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbf.h b/libbf.h index 37b5489..3586532 100644 --- a/libbf.h +++ b/libbf.h @@ -40,8 +40,10 @@ extern "C" { #define LIMB_BITS (1 << LIMB_LOG2_BITS) #if LIMB_BITS == 64 +#ifndef INT128_MAX __extension__ typedef __int128 int128_t; __extension__ typedef unsigned __int128 uint128_t; +#endif typedef int64_t slimb_t; typedef uint64_t limb_t; typedef uint128_t dlimb_t;