Fix PR ada/97805
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 19 Nov 2020 15:39:34 +0000 (16:39 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 19 Nov 2020 15:41:34 +0000 (16:41 +0100)
We need to include limits.h (or <climits>) 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

index 560f3529442f8e29335890da7ef6066db6e04e28..f5432626ee6f4955a55f9215af1a7ad2a41f2aac 100644 (file)
 #include "version.h"
 #endif
 
+/* limits.h is needed for LLONG_MIN.  */
+#ifdef __cplusplus
+#include <climits>
+#else
+#include <limits.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif