Release 960314
[wine.git] / include / wine.h
blobe8b4cfadc3982f096dc0440e754db5449060f09a
1 #ifndef __WINE_WINE_H
2 #define __WINE_WINE_H
4 #ifdef i386
5 extern int runtime_cpu (void);
6 #else
7 static inline int runtime_cpu(void) { return 3; }
8 #endif
10 #ifndef WINELIB
12 #if defined ( linux)
13 struct sigcontext_struct
15 unsigned short sc_gs, __gsh;
16 unsigned short sc_fs, __fsh;
17 unsigned short sc_es, __esh;
18 unsigned short sc_ds, __dsh;
19 unsigned long sc_edi;
20 unsigned long sc_esi;
21 unsigned long sc_ebp;
22 unsigned long sc_esp;
23 unsigned long sc_ebx;
24 unsigned long sc_edx;
25 unsigned long sc_ecx;
26 unsigned long sc_eax;
27 unsigned long sc_trapno;
28 unsigned long sc_err;
29 unsigned long sc_eip;
30 unsigned short sc_cs, __csh;
31 unsigned long sc_eflags;
32 unsigned long esp_at_signal;
33 unsigned short sc_ss, __ssh;
34 unsigned long i387;
35 unsigned long oldmask;
36 unsigned long cr2;
38 #define WINE_DATA_SELECTOR 0x2b
39 #define WINE_CODE_SELECTOR 0x23
40 #endif /* linux */
42 #ifdef __NetBSD__
43 #include <signal.h>
44 #define sigcontext_struct sigcontext
45 #define WINE_DATA_SELECTOR 0x1f
46 #define WINE_CODE_SELECTOR 0x17
47 #endif
49 #ifdef __svr4__
50 #include <signal.h>
51 #include <sys/ucontext.h>
52 #define sigcontext_struct ucontext
53 #define WINE_DATA_SELECTOR 0x1f
54 #define WINE_CODE_SELECTOR 0x17
55 #endif
57 #ifdef __FreeBSD__
58 #include <signal.h>
59 #define sigcontext_struct sigcontext
60 #define WINE_DATA_SELECTOR 0x27
61 #define WINE_CODE_SELECTOR 0x1f
62 #endif
64 #endif /* WINELIB */
66 #endif /* __WINE_WINE_H */