WinSDK header files also defines EXCEPTION_DISPOSITION as enum.
---
 mingw-w64-headers/crt/excpt.h | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/mingw-w64-headers/crt/excpt.h b/mingw-w64-headers/crt/excpt.h
index 5559f5bea6ad..3c03f4f34707 100644
--- a/mingw-w64-headers/crt/excpt.h
+++ b/mingw-w64-headers/crt/excpt.h
@@ -16,13 +16,12 @@ extern "C" {
 
   struct _EXCEPTION_POINTERS;
 
-#ifndef EXCEPTION_DISPOSITION
-#define EXCEPTION_DISPOSITION   int
-#endif
-#define ExceptionContinueExecution 0
-#define ExceptionContinueSearch 1
-#define ExceptionNestedException 2
-#define ExceptionCollidedUnwind 3
+typedef enum _EXCEPTION_DISPOSITION {
+  ExceptionContinueExecution = 0,
+  ExceptionContinueSearch = 1,
+  ExceptionNestedException = 2,
+  ExceptionCollidedUnwind = 3
+} EXCEPTION_DISPOSITION;
 
 #if (defined(_X86_) && !defined(__x86_64))
   struct _EXCEPTION_RECORD;
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to