From ccd74ef4d66b44295fd197c615a817144ae608ce Mon Sep 17 00:00:00 2001 From: dannysmith Date: Sat, 1 Jun 2002 20:38:32 +0000 Subject: [PATCH] * include/windef.h: Add no-op __try, __except, __finally defines from ... * include/excpt.h: Remove file. * include/windows.h: Don't include excpt.h. --- winsup/w32api/ChangeLog | 8 ++++++++ winsup/w32api/include/excpt.h | 20 -------------------- winsup/w32api/include/windef.h | 13 +++++++++++++ winsup/w32api/include/windows.h | 1 - 4 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 winsup/w32api/include/excpt.h diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index ef0a3b3bf0..74216e92fe 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,10 @@ +2002-06-01 Danny Smith + + * include/windef.h: Add no-op __try, __except, __finally + defines from ... + * include/excpt.h: Remove file. + * include/windows.h: Don't include excpt.h. + 2002-05-30 Christopher January * include/ntdef.h (ANSI_STRING, PANSI_STRING, OEM_STRING, POEM_STRING): @@ -8,6 +15,7 @@ * include/w32api.h: Increment version to 1.5 * Makefile.in: Ditto. + 2002-05-27 René Møller Fonseca * include/winreg.h: (RegConnectRegistry[AW]): Replace diff --git a/winsup/w32api/include/excpt.h b/winsup/w32api/include/excpt.h deleted file mode 100644 index 774612458f..0000000000 --- a/winsup/w32api/include/excpt.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef _EXCPT_H -#define _EXCPT_H -#if __GNUC__ >=3 -#pragma GCC system_header -#endif - -/* FIXME: This will make some code compile. The programs will most - likely crash when an exception is raised, but at least they will - compile. */ -#ifdef __GNUC__ -#define __try -#define __except(x) if (0) /* don't execute handler */ -#define __finally - -#define _try __try -#define _except __except -#define _finally __finally -#endif - -#endif diff --git a/winsup/w32api/include/windef.h b/winsup/w32api/include/windef.h index a4bf19a72b..dc42ac7980 100644 --- a/winsup/w32api/include/windef.h +++ b/winsup/w32api/include/windef.h @@ -184,6 +184,19 @@ extern "C" { #endif #endif +/* FIXME: This will make some code compile. The programs will most + likely crash when an exception is raised, but at least they will + compile. */ +#if defined (__GNUC__) && defined (__SEH_NOP) +#define __try +#define __except(x) if (0) /* don't execute handler */ +#define __finally + +#define _try __try +#define _except __except +#define _finally __finally +#endif + typedef unsigned long DWORD; typedef int WINBOOL,*PWINBOOL,*LPWINBOOL; /* FIXME: Is there a good solution to this? */ diff --git a/winsup/w32api/include/windows.h b/winsup/w32api/include/windows.h index 5441e55cb2..6934a8684f 100644 --- a/winsup/w32api/include/windows.h +++ b/winsup/w32api/include/windows.h @@ -48,7 +48,6 @@ #include #include #include -#include #include #ifndef _WINGDI_H #include -- 2.11.0