From: Victor Porton <porton@narod.ru>
Subject: Re: How to find the type of operating system.
Date: Sat, 25 Jun 2016 00:12:55 +0300
Date: 2016-06-25T00:12:55+03:00 [thread overview]
Message-ID: <nkk7om$58g$1@gioia.aioe.org> (raw)
In-Reply-To: 1be0537a-7ab3-416f-80e6-fc6ee4dfcdc6@googlegroups.com
Lucretia wrote:
> 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;
You've forgotten to add "constant" keyword for "This" object.
--
Victor Porton - http://portonvictor.org
prev parent reply other threads:[~2016-06-24 21:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 15:55 How to find the type of operating system ldries46
2016-04-06 21:41 ` Randy Brukardt
2016-04-06 22:42 ` Anh Vo
2016-04-07 6:45 ` Simon Wright
2016-04-07 7:31 ` Randy Brukardt
2016-04-07 16:33 ` Jeffrey R. Carter
2016-04-07 11:20 ` Lucretia
2016-06-24 21:12 ` Victor Porton [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox