From 679ed5b02b20d97992d94878f9293c02b3fc26a4 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Thu, 14 Apr 2022 11:13:39 +0000 Subject: [PATCH] [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. --- gcc/ada/raise-gcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 , see comment above #include in mingw32.h. */ #include "mingw32.h" -- 2.7.4