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-Thread: 103376,6426898aedaa5880,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!22g2000hsm.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Pragma for conditional compilation? (Ada 2005 vs. 95) Date: Thu, 27 Sep 2007 00:56:09 -0700 Organization: http://groups.google.com Message-ID: <1190879769.361848.188220@22g2000hsm.googlegroups.com> NNTP-Posting-Host: 75.171.63.196 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1190879769 15438 127.0.0.1 (27 Sep 2007 07:56:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 27 Sep 2007 07:56:09 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/522+ (KHTML, like Gecko, Safari/522) OmniWeb/v612.0.91344,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 22g2000hsm.googlegroups.com; posting-host=75.171.63.196; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2155 Date: 2007-09-27T00:56:09-07:00 List-Id: Is there a pragma to designate some lines of Ada for conditional compilation depending on if the compiler is Ada 2005 or not? I have made some bindings that use some of the declarations from Annex G.3 which relates to vector-matrix stuff which is new to Ada 2005. If the compiler provides those declarations (i.e., is 2005), I want to use the compiler's version because I figure that is the cleanest way to get things done. If the compiler is Ada 95, I instead want to provide the declarations myself. Currently, I handle this by commenting out the declarations of my own if Ada 2005 and uncomment them if Ada 95. (There are a couple of "with" and "use" lines that also have to be (un)commented but it is a similar situation.) I'm guessing this is an Ada "no-no" but would be interested to know for sure. Jerry