Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!overload!dillon From: dillon@overload.Berkeley.CA.US (Matthew Dillon) Newsgroups: comp.sys.amiga.programmer Subject: Re: Testing for 1.3 VS. 2.0 Message-ID: Date: 21 Feb 91 20:41:25 GMT References: <1991Feb20.234836.1@happy.colorado.edu> Organization: Not an Organization Lines: 25 In article <1991Feb20.234836.1@happy.colorado.edu> kskelm@happy.colorado.edu writes: > > What is the simplest way for a program to automatically detect whether >it is running under 1.3 or 2.0? > > Thanks, > > Kevin Kelm Check the version number in exec.library, like this: extern struct Library *SysBase; ... if (SysBase->lib_Version >= 36) { .. you are running under 2.0 .. } -Matt -- Matthew Dillon dillon@Overload.Berkeley.CA.US 891 Regal Rd. uunet.uu.net!overload!dillon Berkeley, Ca. 94708 USA