Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!mips!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!news.cs.indiana.edu!ux1.cso.uiuc.edu!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac.programmer Subject: Re: Testing for System 7 Message-ID: <1991Jun28.175417.9465@ux1.cso.uiuc.edu> Date: 28 Jun 91 17:54:17 GMT References: <1991Jun27.125511.19565@runx.oz.au> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at U-C Lines: 22 >How do I test for the presence of system 7? I dont have access to IM VI. #ifdef ERRANT_PEDANTRY You shouldn't test for system 7, you should test for the capability you're interested in. #else /* this ought to work even without fancy system 7 glue or routines */ Boolean Is7(void) { SysEnvRec env; SysEnvirons(ENVIRONS_VERSION,&env); return(env.systemVersion >= 0x0700); } #endif -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner