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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9023f3818c3c6a68 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-25 02:24:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Detecting the OS type before clearing screen Date: Tue, 25 Mar 2003 11:24:09 +0100 Organization: TELECOM Paris Message-ID: <87adfjvj5i.fsf@inf.enst.fr> References: NNTP-Posting-Host: beeblebrox.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1048587850 94659 137.194.162.67 (25 Mar 2003 10:24:10 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 25 Mar 2003 10:24:10 +0000 (UTC) Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:v335M7oyc8uXi5hRcujdHvpxx1A= Xref: archiver1.google.com comp.lang.ada:35675 Date: 2003-03-25T11:24:09+01:00 List-Id: >>>>> "sk" == sk writes: sk> If you are using Gnat then look at the gnat preprocessor for sk> methods on how to compile different parts of the code for each sk> platform. Rather than using a preprocessor which is really a "non-Ada" way of doing things, I would suggest using a package with two versions of the body (and even two version of the spec if the private part is different). A link or a copy in the build procedure should do the job. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam