From: Arnaud Charlet Date: Thu, 14 Apr 2022 11:13:39 +0000 (+0000) Subject: [Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows X-Git-Tag: basepoints/gcc-14~6555 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=679ed5b02b20d97992d94878f9293c02b3fc26a4;p=thirdparty%2Fgcc.git [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. --- diff --git a/gcc/ada/raise-gcc.c b/gcc/ada/raise-gcc.c index 801edb657f1..f4c42c09273 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"