From b7e48a9b2719a2364d3ac6cccaa00ab7784b42cb Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 9 Oct 2019 10:25:21 +0200 Subject: [PATCH] Fix #9399 (Build Failure on x86: error: unknown type name '__int128_t') (#2254) https://stackoverflow.com/questions/16088282/is-there-a-128-bit-integer-in-gcc suggests to test for __SIZEOF_INT128__. This test is added now and Cppcheck now also compiles for a 32 bit target with the expected warning that there is no 128-bit integer. "make test" also works. --- lib/exprengine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exprengine.h b/lib/exprengine.h index edf9b7dd2..4d13f88be 100644 --- a/lib/exprengine.h +++ b/lib/exprengine.h @@ -38,7 +38,7 @@ class Settings; class Token; class Variable; -#ifdef __GNUC__ +#if defined(__GNUC__) && defined (__SIZEOF_INT128__) typedef __int128_t int128_t; #else typedef long long int128_t;