OSDN Git Service

2012-10-15 Earnie Boyd <earnie@users.sourceforge.net>
[mingw/mingw-org-wsl.git] / include / excpt.h
index 93f44e0..59d545e 100644 (file)
 #ifndef        _EXCPT_H_
 #define        _EXCPT_H_
 #pragma GCC system_header
-
-/*
- * Support for operating system level structured exception handling.
- *
- * NOTE: This is very preliminary stuff. I am also pretty sure it is
- *       completely Intel specific.
- */
-
-/* All the headers include this file. */
 #include <_mingw.h>
 
-#include <windef.h>
+__PSHPACK8
 
-/*
- * NOTE: The constants structs and typedefs below should be defined in the
- *       Win32 API headers.
- */
-#define        EH_NONCONTINUABLE       0x01
-#define        EH_UNWINDING            0x02
-#define        EH_EXIT_UNWIND          0x04
-#define        EH_STACK_INVALID        0x08
-#define        EH_NESTED_CALL          0x10
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-#ifndef        RC_INVOKED
 
-typedef enum {
+typedef enum _EXCEPTION_DISPOSITION {
        ExceptionContinueExecution,
        ExceptionContinueSearch,
        ExceptionNestedException,
        ExceptionCollidedUnwind
 } EXCEPTION_DISPOSITION;
 
-
-/*
- * End of stuff that should be in the Win32 API files.
- */
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /*
  * The type of function that is expected as an exception handler to be
  * installed with __try1.
@@ -128,6 +102,5 @@ typedef PEXCEPTION_REGISTRATION PEXCEPTION_REGISTRATION_RECORD;
 }
 #endif
 
-#endif /* Not RC_INVOKED */
-
+__POPPACK8
 #endif /* _EXCPT_H_ not defined */