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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e29bf5df4ed3705d,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!g10g2000cwb.googlegroups.com!not-for-mail From: "AAFellow@hotmail.com" Newsgroups: comp.lang.ada Subject: Function/Call in Ada to detect operating system? Date: 20 Apr 2006 12:35:32 -0700 Organization: http://groups.google.com Message-ID: <1145561732.215449.127930@g10g2000cwb.googlegroups.com> NNTP-Posting-Host: 155.104.239.18 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1145561738 24044 127.0.0.1 (20 Apr 2006 19:35:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 20 Apr 2006 19:35:38 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g10g2000cwb.googlegroups.com; posting-host=155.104.239.18; posting-account=_J4P3w0AAACnNF4AML-QgJSZOcM37xcL Xref: g2news2.google.com comp.lang.ada:3881 Date: 2006-04-20T12:35:32-07:00 List-Id: Hey guys, 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; thanks guys!!