diff mbox series

[Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows

Message ID 20220519141613.GA3723370@adacore.com
State New
Headers show
Series [Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows | expand

Commit Message

Pierre-Marie de Rodat May 19, 2022, 2:16 p.m. UTC
This is needed in particular by GNAT LLVM builds.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* raise-gcc.c: Fix compilation with -DSTANDALONE under windows.
diff mbox series

Patch

diff --git a/gcc/ada/raise-gcc.c b/gcc/ada/raise-gcc.c
--- 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"