Ignore:
Timestamp:
Aug 28, 2008, 11:51:45 AM (11 years ago)
Author:
gb
Message:

Makefile: build with 10.4 interfaces and -mmacosx_version_min 10.4
lisptypes.h: kludgily #define "new" -prefixed mcontext fields.

(This is what we do on other Darwin platforms; it's supposed to help
ensure that kernels built on Leopard work on Tiger, while allowing
us to eventually drop Tiger support and not have to change as much
then.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/lisptypes.h

    r10565 r10576  
    142142#ifdef X8632
    143143/* Assume rational <i386/ucontext.h> */
     144/* Sadly, we can't make that assumption, since Apple renamed things
     145   for Leopard. Yow!  Are we standards-compliant yet ? */
     146/* In the long term, we probably want to use the leopard-compliant
     147   names (with leading __ prefixes).  In the shorter term, we want
     148   kernels compiled on Leopard to run on Tiger (and not reference
     149   foo$UNIX2003 and similar nonsense, and that means getting the old
     150   names (without leading __ prefixes.)  Confused yet ? */
     151
     152/* #if STILL_SUPPORT_TIGER */
     153#define __ss ss
     154#define __ds ds
     155#define __es es
     156#define __cs cs
     157#define __fs fs
     158#define __gs gs
     159#define __eax eax
     160#define __esp esp
     161#define __eip eip
     162#define __eflags eflags
     163#define __fpu_xmm0 fpu_xmm0
     164#define __fpu_mxcsr fpu_mxcsr
     165#define __fpu_stmm0 fpu_stmm0
     166#define __err err
     167#define __faultvaddr faultvaddr
     168/* #endif STILL_SUPPORT_TIGER */
     169
    144170#define UC_MCONTEXT(UC) UC->uc_mcontext
    145171typedef mcontext_t MCONTEXT_T;
Note: See TracChangeset for help on using the changeset viewer.