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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.45.86 with SMTP id v80mr1508656ota.36.1460028049914; Thu, 07 Apr 2016 04:20:49 -0700 (PDT) X-Received: by 10.157.55.164 with SMTP id x33mr16815otb.9.1460028049834; Thu, 07 Apr 2016 04:20:49 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!optima2.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!gy3no661661igb.0!news-out.google.com!u9ni702igk.0!nntp.google.com!gy3no661657igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 7 Apr 2016 04:20:49 -0700 (PDT) In-Reply-To: <57053167$0$4216$e4fe514c@news.kpn.nl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=90.217.241.152; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 90.217.241.152 References: <57053167$0$4216$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1be0537a-7ab3-416f-80e6-fc6ee4dfcdc6@googlegroups.com> Subject: Re: How to find the type of operating system. From: Lucretia Injection-Date: Thu, 07 Apr 2016 11:20:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30038 Date: 2016-04-07T04:20:49-07:00 List-Id: On Wednesday, 6 April 2016 16:55:51 UTC+1, ldries46 wrote: > How can I fin in which operating system a program runs and other details of > that operating system. You know what OS you're compiling on, so define a variable in GPR OS and set it on compile. During compile, set the source dirs to include an os specific one and in there put a package which defines the OS: package OS is type OSes is (Linux, Windows, MacOS, iOS, etc.); This : OSes := Linux; -- For the linux/os.ads file. end OS;