Added a test for MUIA_Listview_SelectChange.
[AROS.git] / arch / all-mingw32 / kernel / kernel_traps.h
blobb9daf3c10cec05023f6407f53e1f825b91df5a9d
1 /*
2 * Exception codes from winbase.h.
3 * It appeared very problematic just to #include <windows.h> from AROS code because
4 * AROS crosscompiler doesn't look into MinGW include path by default and this
5 * path is different on different systems.
6 * Looks like the solution needs to be found. The same applies to -idirafter /usr/include
7 * for UNIX systems, it works only until someone tries to crosscompile for example
8 * Linux-hosted port under MinGW.
9 * For now i have these definitions copied here.
11 #define EXCEPTION_GUARD_PAGE 0x80000001
12 #define EXCEPTION_DATATYPE_MISALIGNMENT 0x80000002
13 #define EXCEPTION_BREAKPOINT 0x80000003
14 #define EXCEPTION_SINGLE_STEP 0x80000004
15 #define EXCEPTION_ACCESS_VIOLATION 0xC0000005
16 #define EXCEPTION_IN_PAGE_ERROR 0xC0000006
17 #define EXCEPTION_ILLEGAL_INSTRUCTION 0xC000001D
18 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED 0xC000008C
19 #define EXCEPTION_FLT_DIVIDE_BY_ZERO 0xC000008E
20 #define EXCEPTION_INT_DIVIDE_BY_ZERO 0xC0000094
21 #define EXCEPTION_PRIV_INSTRUCTION 0xC0000096
23 struct ExceptionTranslation
25 unsigned int ExceptionCode; /* Windows exception code */
26 char AmigaTrap; /* m68k trap number for exec.library */
27 char CPUTrap; /* Native CPU trap number for kernel.resource */
30 extern struct ExceptionTranslation Traps[];