From: Eric Botcazou <[email protected]>
It turns out that adaint.c includes other Windows header files than just
windows.h, so defining WIN32_LEAN_AND_MEAN is not sufficient for it.
gcc/ada/
* adaint.c [_WIN32]: Undefine 'abort' macro.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/adaint.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c
index 8522094164e..2a193efc002 100644
--- a/gcc/ada/adaint.c
+++ b/gcc/ada/adaint.c
@@ -227,6 +227,9 @@ UINT __gnat_current_ccs_encoding;
#elif defined (_WIN32)
+/* Cannot redefine abort here. */
+#undef abort
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <accctrl.h>
--
2.40.0