From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e29bf5df4ed3705d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!atl-c08.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!KNOLOGY.NET-a2kHrUvQQWlmc!not-for-mail Date: Thu, 20 Apr 2006 15:48:46 -0500 From: "Marc A. Criley" User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Function/Call in Ada to detect operating system? References: <1145561732.215449.127930@g10g2000cwb.googlegroups.com> In-Reply-To: <1145561732.215449.127930@g10g2000cwb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <31a8b$4447f369$45491254$23590@KNOLOGY.NET> X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: 31a8b4447f369e0ecb7f123590 Xref: g2news2.google.com comp.lang.ada:3882 Date: 2006-04-20T15:48:46-05:00 List-Id: AAFellow@hotmail.com wrote: > Is there a way to detect what operating system the code is running on? > I'm writing my code to work on both windows and linux, and there are > some parts where I would like to do something like this: > > If(Windows) > *Do something this way; > else if (Linux) > *Do something a slightly different way; There was a huge thread on this subject in this group a few months ago, here's a link to the root posting (caution, may line wrap): http://groups.google.com/group/comp.lang.ada/browse_frm/thread/f890526de6a8a218/593e4f90fb944fa4?q=windows+linux+system&rnum=3#593e4f90fb944fa4 -- Marc A. Criley -- McKae Technologies -- www.mckae.com -- DTraq - XPath In Ada - XML EZ Out