Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!dwb From: dwb@Apple.COM (David W. Berry) Newsgroups: comp.sys.mac.programmer Subject: Re: How should you check for A/UX? Message-ID: <15963@apple.Apple.COM> Date: 22 Aug 88 23:06:25 GMT References: <183@spt.entity.com> Reply-To: dwb@apple.com.UUCP (David W. Berry) Organization: Apple Computer Inc, Cupertino, CA Lines: 22 In article <183@spt.entity.com> gz@spt.entity.com (Gail Zacharias) writes: >What's the recommended way for a Mac program to tell if it's running >under the A/UX toolbox emulation? #define HWCfgFlags (* (unsigned short *) 0xb22) #define cfgAUXActive 0x200 Boolean AUXActive() { return (HWCfgFlags & cfgAUXActive) == cfgAUXActive; } > >-- >gz@entity.com ...!mit-eddie!spt!gz > Unix: when you can't afford the very best. Opinions: MINE, ALL MINE! (greedy evil chuckle) David W. Berry apple!dwb@sun.com dwb@apple.com 973-5168@408.MaBell