projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9844497
)
Fix PR ada/97805
author
Eric Botcazou
<ebotcazou@adacore.com>
Thu, 19 Nov 2020 15:39:34 +0000
(16:39 +0100)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/gcc/ada/adaint.c
b/gcc/ada/adaint.c
index 560f3529442f8e29335890da7ef6066db6e04e28..f5432626ee6f4955a55f9215af1a7ad2a41f2aac 100644
(file)
--- 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 <climits>
+#else
+#include <limits.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif