public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7556] ada: Follow-up fix for compilation issue with recent MinGW-w64 versions
@ 2023-07-11 9:19 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2023-07-11 9:19 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:395731931eff3841f9188d7da8c1400301dcadd9
commit r13-7556-g395731931eff3841f9188d7da8c1400301dcadd9
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Fri Jun 30 17:14:44 2023 +0200
ada: Follow-up fix for compilation issue with recent MinGW-w64 versions
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.
Diff:
---
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-11 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-11 9:19 [gcc r13-7556] ada: Follow-up fix for compilation issue with recent MinGW-w64 versions Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).