aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2022-04-14 11:13:39 +0000
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-19 14:05:31 +0000
commit679ed5b02b20d97992d94878f9293c02b3fc26a4 (patch)
tree9663b84cfb4302f1624f1c59fc932f4bdbbbfade
parent4b3cf8416424a86c312e52c47429d869c45875ce (diff)
downloadgcc-679ed5b02b20d97992d94878f9293c02b3fc26a4.zip
gcc-679ed5b02b20d97992d94878f9293c02b3fc26a4.tar.gz
gcc-679ed5b02b20d97992d94878f9293c02b3fc26a4.tar.bz2
[Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows
This is needed in particular by GNAT LLVM builds. gcc/ada/ * raise-gcc.c: Fix compilation with -DSTANDALONE under windows.
-rw-r--r--gcc/ada/raise-gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/raise-gcc.c b/gcc/ada/raise-gcc.c
index 801edb6..f4c42c0 100644
--- a/gcc/ada/raise-gcc.c
+++ b/gcc/ada/raise-gcc.c
@@ -78,7 +78,7 @@
(SJLJ or DWARF). We need a consistently named interface to import from
a-except, so wrappers are defined here. */
-#ifdef __CYGWIN__
+#if defined (__CYGWIN__) || (defined(__SEH__) && defined(STANDALONE))
/* Prevent compile error due to unwind-generic.h including <windows.h>,
see comment above #include <windows.h> in mingw32.h. */
#include "mingw32.h"