]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows
authorArnaud Charlet <charlet@adacore.com>
Thu, 14 Apr 2022 11:13:39 +0000 (11:13 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:31 +0000 (14:05 +0000)
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

index 801edb657f1cfc59a732f03bea419a0afd972748..f4c42c09273a4efc664c956a1bf6a0d54aaf6513 100644 (file)
@@ -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"