From 2729378d0905a04e476a8bdcaaf0288f417810ec Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 19 Nov 2020 16:39:34 +0100 Subject: [PATCH] Fix PR ada/97805 We need to include limits.h (or ) in adaint.c because of LLONG_MIN. gcc/ada/ChangeLog: PR ada/97805 * adaint.c: Include climits in C++ and limits.h otherwise. --- gcc/ada/adaint.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 560f3529442..f5432626ee6 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -145,6 +145,13 @@ #include "version.h" #endif +/* limits.h is needed for LLONG_MIN. */ +#ifdef __cplusplus +#include +#else +#include +#endif + #ifdef __cplusplus extern "C" { #endif -- 2.30.2