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