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