From: Eric Botcazou Date: Thu, 19 Nov 2020 15:39:34 +0000 (+0100) Subject: Fix PR ada/97805 X-Git-Tag: basepoints/gcc-12~3087 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2729378d0905a04e476a8bdcaaf0288f417810ec;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 560f3529442f..f5432626ee6f 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