X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-64-darwin-os.h;h=53b2230fe9089f2713b46ed1dca2fde0ba2e38c6;hb=eac461c1f1ca91cfe282c779291d582ed6b336cb;hp=1a4f796ed034975a024cffb2f908fdf5882016d6;hpb=02d7495253b9075e4d86275590c3e827c814b596;p=sbcl.git diff --git a/src/runtime/x86-64-darwin-os.h b/src/runtime/x86-64-darwin-os.h index 1a4f796..53b2230 100644 --- a/src/runtime/x86-64-darwin-os.h +++ b/src/runtime/x86-64-darwin-os.h @@ -10,10 +10,13 @@ static inline os_context_t *arch_os_get_context(void **void_context) return (os_context_t *) *void_context; } -#ifdef MAC_OS_X_VERSION_10_5 +#if __DARWIN_UNIX03 #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->__ss.__##stem #else #define CONTEXT_ADDR_FROM_STEM(stem) &context->uc_mcontext->ss.stem -#endif +#endif /* __DARWIN_UNIX03 */ + +#define RESTORE_FP_CONTROL_FROM_CONTEXT +void os_restore_fp_control(os_context_t *context); #endif /* _X86_64_DARWIN_OS_H */