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,6426898aedaa5880 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95) Date: Fri, 28 Sep 2007 21:04:14 +0100 Organization: Pushface Message-ID: References: <1190879769.361848.188220@22g2000hsm.googlegroups.com> <1190929570.915553.284000@19g2000hsx.googlegroups.com> <4p1jdf.ssa.ln@hunter.axlog.fr> <1190993095.488093.244130@r29g2000hsg.googlegroups.com> <1v8jdf.rc4.ln@hunter.axlog.fr> <1191002053.9585.66.camel@kartoffel> <46FD45BA.5030205@obry.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1191009852 8580 62.49.19.209 (28 Sep 2007 20:04:12 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 28 Sep 2007 20:04:12 +0000 (UTC) Cancel-Lock: sha1:nTJjMMEK2+5msvlZ3vSQ9mcvVC4= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:2200 Date: 2007-09-28T21:04:14+01:00 List-Id: Pascal Obry writes: > Note that some of the configuration management can be done directly with > GNAT Project File. In this case: > > type OS_Type is ("UNIX", "Windows_NT"); > OS : OS_Type := external ("OS", "UNIX"); > > case OS is > when "Windows_NT" => > for Implementation ("OS_Services") > use "os_services__win32.adb"; > when "UNIX" => > for Implementation ("OS_Services") > use "os_services__linux.adb"; > end case; > > Note the double underscore to be sure that those files are not found > automatically by the project file when storing the OS specific units > with all the other sources. I never realised you could do this .. and I thought I had read the friendly manual, too. Thanks, Pascal!