public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows
@ 2022-05-19 14:16 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-19 14:16 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

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.

[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 498 bytes --]

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"



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-19 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 14:16 [Ada] Fix compilation of raise-gcc.c with -DSTANDALONE under windows Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).