Fix cut-to-width in the presence of bad constants in dead code.
[sbcl.git] / src / runtime / ppc-darwin-os.h
1 #ifndef _PPC_DARWIN_OS_H
2 #define _PPC_DARWIN_OS_H
3
4 #include "darwin-os.h"
5
6 typedef unsigned int os_context_register_t;
7
8 static inline os_context_t *arch_os_get_context(void **void_context)
9 {
10     return (os_context_t *) *void_context;
11 }
12 /* On OS X 10.5, the field names for the thread state have changed and
13  * now are prepended with __. Use some #define hackery to deal with
14  * this.
15  */
16 #if __DARWIN_UNIX03
17
18 #define PPC_DARWIN_REGIFY(foo) __ ## foo
19
20 typedef ppc_thread_state_t ppc_ss_struct_t;
21
22 #else
23
24 #define PPC_DARWIN_REGIFY(foo) foo
25
26 typedef ppc_saved_state_t ppc_ss_struct_t;
27
28 #endif /* __DARWIN_UNIX03 */
29
30 #endif /* _PPC_DARWIN_OS_H */